Pipes Attributes.


Pipes Examples


Count the files in a directory:  ls | wc -l


Show the 10 most recently modified files:  ls -lt | head


Search a file for all occurrence of the string "system"and pause at each page: 
cat file1.txt | grep "system" | more


We can combine these with redirections:  cat file1.txt | grep "system" > output.txt

Comments

Popular posts from this blog

RPM

RAID

Wild Cards