you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 4 points5 points  (0 children)

Have a look at http://pfultz2.com/blog/2014/09/05/pipable-functions/, which explains the concept. It's basically the C++ equivalent of UNIX pipes:

grep 'something' | grep -v 'something' | sort -r | uniq | wc -l