Quantcast
Channel: Linux by Examples » process substitution
Browsing all 2 articles
Browse latest View live

Compare two directory listings

Given two directories: ~/dir-new/ and ~/dir/, $ ls ~/dir-new/ file-01.txt file-02.txt file-new.txt $ ls ~/dir/ file-01.txt file-02.txt file-old.txt To compare them: comm comm compares two files...

View Article



Redirect output to multiple processes

Since tee can read the standard input, and write to multiple files, we may leverage this feature so that it writes to multiple processes (instead of files). tee >(process1) >(process2)...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images