1

How to remove Unicode <feff> from top of file?

view story
linux-howto

http://www.unix.com – Experts, this has been dumped on me at the last minute.... i am having issue on few files where im getting files from source with BOM mark at the top of every file and i need to check for its existence and remove it. <feff> header Coulmn1|column2......n i know i can simply do sed on it like this to get rid of 1st line... sed 1d FilewidFEFF.csv > other.txt and it works great and removes 1st line. but my goal is to first check if 1st line has BOM or not and then only delete 1st line. since its unicode i've NOT been able to grep it successfully.... any ideas pleas... thanks so mu (HowTos)