Skip to content

Instantly share code, notes, and snippets.

@elanozturk
Created March 4, 2018 11:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elanozturk/58a200407f4cc35c5d78ae7963507257 to your computer and use it in GitHub Desktop.
Save elanozturk/58a200407f4cc35c5d78ae7963507257 to your computer and use it in GitHub Desktop.
sort *.txt | uniq > all_acc.txt
sort *.txt | uniq -u > all_acc.txt
sort *.txt | sort -u > all_acc.txt
sort *.txt | uniq -u > all_acc.txt | awk '!a[$0]++' all_acc.txt
sort -u all_acc.txt > all_accounts.txt
sort *.txt > all_acc.txt
perl -ne 'print unless $dup{$_}++;' all_acc.txt all_accounts.txt
perl -ne 'print unless $dup{$_}++;' all_acc.txt > all_accounts.txt
perl -ne 'print unless $dup{$_}++;' all_accounts.txt > all.txt
<input nl | sort -k 2 -u | sort -k 1n | cut -f 2- >output
<all_acc.txt nl | sort -k 2 -u | sort -k 1n | cut -f 2- >output.txt
awk '!seen[$0]++' all_acc.txt >all.txt
awk '!seen[$0]++' all_acc.txt > all.txt
sort all_acc.txt | uniq > all.txt
awk '{sub(/[[:space:]]+$/,"");} !A[$0]++' all_acc.txt
awk '{sub(/[[:space:]]+$/,"");} !A[$0]++' all_acc.txt > all.txt
sort all.txt | uniq |sponge all.txt
sort *.txt > all_acc.txt
sort all_acc.txt | uniq > all.txt
split -l 120 all.txt
sort -u *.txt
sort -u *.txt > all_accounts.txt
split -l 140 all.txt
sort *.txt | uniq > all.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment