CryptoPHP: Analysis of a hidden threat inside popular content management systems
blog.fox-it.com2 pointsby gnoe0 comments
$ cat ips.txt | sort | uniq -c | sort -rn
3 127.0.0.1
2 192.168.1.1
1 192.168.1.2
Now i want to reformat the output of uniq -c, i want the count to the last column: $ cat ips.txt | sort | uniq -c | sort -rn | parallel --colsep ' ' echo {2} {1}
But gives empty output.. what gives?
It only works if I double pipe it thru parallel like this: $ cat ips.txt | sort | uniq -c | sort -rn | \
parallel --trim lr echo | parallel --colsep ' ' echo {2} {1}
127.0.0.1 3
192.168.1.1 2
192.168.1.2 1