Hi,
I was wondering if pipes ("|"), or rather the command that follow them, know when they're supposed to wait for all the data?
For instance, if you take this:
cat my_file | sort | uniq
for uniq to work well, it needs to have rows sorted, but for lines to be sorted properly, it needs my_file in its entirety. So, will "uniq" wait until it has the entire file before starting to process?
I've tried a couple of manual test and it looks like it does, but I suspect it's just that my input file is too small and that therefore all results arrive so quickly that uniq has everything it needs already.
Any hindsight would be welcome!
Thanks,
Anthony