Skip to content

Instantly share code, notes, and snippets.

@BillKek
Created May 20, 2023 22:08
Show Gist options
  • Save BillKek/1999f4a1bb5d344ce95093cf92ffbb22 to your computer and use it in GitHub Desktop.
Save BillKek/1999f4a1bb5d344ce95093cf92ffbb22 to your computer and use it in GitHub Desktop.
UTF-16LE и bash
сортировка UTF16 (типа UCS-2) в bash:
`< in_tmp.txt iconv -f UTF-16LE -t UTF-8 | sort | iconv -f UTF-8 -t UTF-16LE > out.txt`
с удалением одинаковых
`< in_tmp.txt iconv -f UTF-16LE -t UTF-8 | sort -u | iconv -f UTF-8 -t UTF-16LE > out.txt`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment