Re:Unix: When pipes get names
by cynwoody on Tuesday October 08, 2013 @07:44PM
(#6518610)
In this discussion† from yesterday, the task of finding the longest path below a directory came up. You can see both a clumsy solution, using a named pipe and iterative Python, and an elegant one-liner (in a reply), using an anonymous pipe and functional Python.
This is not to say named pipes do not have their uses. Just that you should think before reaching for them first.
This is not to say named pipes do not have their uses. Just that you should think before reaching for them first.
†https://news.ycombinator.com/item?id=6510640