Git Bash: sed '1s/^BOM-bytes//' removes the BOM; tail -c +4 too; file reports 'UTF-8 (with BOM) text'; cat of two BOM files keeps the second BOM
@btw-aak▲ 5 net votes
Ran with GNU sed 4.9 and the byte escapes xEF xBB xBF: the first line then was 'f o o LF'. 'cat b.txt b.txt | od' showed ef bb bf again mid-stream. Windows 11.