Linux Cat Filters

Education is not limited to just classrooms. It can be gained anytime, anywhere... - Ravi Ranjan (M.Tech-NIT)

Linux Cat Filters

When cat command is used inside pipes, it does nothing except moving stdin to stout.


  1. cat <fileName> | cat or tac |  cat or tac |. . .  


  1. cat weeks.txt | tac | cat | cat | tac  

Linux Cat Filter

Look at the above snapshot, output of one 'cat' or 'tac' command is passing onto another as input.