Created
January 30, 2024 18:33
-
-
Save vadimkantorov/9f29baaf91827c6fe8bfe9ca05b3ace8 to your computer and use it in GitHub Desktop.
Various sed tricks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# excel opens correctly only utf16 with BOM with tab separator or utf8 with bom with comma separator | |
sed '1s/^\(\xef\xbb\xbf\)\?/\xef\xbb\xbf/' will_prepend_bom_to_utf8_file_if_it_does_not_have_bom_yet.csv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment