Skip to content

How to remove BOM from UTF-8 using sed?

How to remove BOM from UTF-8 using sed?

Answer:

# sed -e '1s/^\xef\xbb\xbf//' text.txt

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  1. Remove newline character from the end of a string in Perl
  2. How to remove HTML from text using PHP?
  3. Remove specified lines from a file using sed
  4. Remove package with Yum
  5. Remove comments (#) and empty lines in a file

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*