https://github.com/thomasheller/runeset
Find unique characters in a file
https://github.com/thomasheller/runeset
Last synced: about 2 months ago
JSON representation
Find unique characters in a file
- Host: GitHub
- URL: https://github.com/thomasheller/runeset
- Owner: thomasheller
- License: mit
- Created: 2017-04-14T20:37:50.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-14T20:47:31.000Z (about 8 years ago)
- Last Synced: 2025-02-13T14:40:30.080Z (4 months ago)
- Language: Go
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# runeset
runeset finds unique characters in a file (or somewhere else).
It reads stdin and prints all distinct Unicode characters found,
sorted, followed by a newline.```sh
$ go get github.com/thomasheller/runeset
$ echo aaccaabaadfa > /tmp/alpha.txt
$ cat /tmp/alpha.txt | runesetabcdf
```Using the `-escape` flag, runeset prints single-quoted characters (Go
syntax).```sh
$ cat /tmp/alpha.txt | runeset -escape
'\n''a''b''c''d''f'
```