Tuesday 23 February 2016

shell - How to remove special character  character in a file in unix?

Below is the data in my file:



one_1.10=to - Standard (£1.10)
ITV_1.10=to - Standard (£1.10)


I want to remove  in my file in unix?




i tried below methods. Opened the file in vi mode and gave below commands



:set nobomb
:wq

sed -i '1 s/^\xef\xbb\xbf//'


But the BOM character is not getting removed. Could someone please help?

No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...