Created
March 2, 2016 13:47
-
-
Save mlebkowski/f2a4a82e3fb825f9383c to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
# | |
# Input is tab separated, UTF-8 with " quotes | |
# | |
INPUT="${1:-/dev/stdin}" | |
printf '\xFF\xFE'; | |
cat "$INPUT" | iconv -f UTF-8 -t UTF-16LE | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment