Skip to content

Instantly share code, notes, and snippets.

@daltonnyx
Created July 27, 2017 07:59
Show Gist options
  • Save daltonnyx/a897e1bde1ad7f2cb74fffdef2bbec2e to your computer and use it in GitHub Desktop.
Save daltonnyx/a897e1bde1ad7f2cb74fffdef2bbec2e to your computer and use it in GitHub Desktop.
# awk '{if(NR==1)sub(/^\xef\xbb\xbf/,"");print}' text.txt
Source: http://stackoverflow.com/questions/1068650/using-awk-to-remove-the-byte-order-mark
Updated: (Suggested by Van Overveldt Peter)
# tail --bytes=+4 text.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment