Created
July 30, 2018 16:13
-
-
Save yarick/e7c842744d4631ea54f1ebb9aecda0c9 to your computer and use it in GitHub Desktop.
Python one-liner
This file contains hidden or 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
for i in $(ls *.txt); do python -c "import sys; lines = sys.stdin.readlines(); print ''.join(sorted(set(lines)))" < $i > $i.sorted.de_dupped; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment