Hi,
has anyone an idea how an awk script (presumably a one-liner) for removing a BOM would look like?
Specification:
- print every line after the first (
NR > 1
) - for the first line: If it starts with
#FE #FF
or#FF #FE
, remove those and print the rest