The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




Thread: help me
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #7 (permalink)  
Old 05-24-2007
ghostdog74 ghostdog74 is offline Forum Advisor  
Registered User
  
 

Join Date: Sep 2006
Posts: 2,554
Quote:
Originally Posted by Unbeliever
It is only useless if it has or serves no purpose.
yup, cat's purpose is to join files, and cat "filename" | <someothercmd> serves no purpose except to waste time "opening" another process
Quote:
In the past I've found that with new shell users it is easier to explain commands piped together rather than explain redirection. Therefore the purpose is simplicity.
<, >> , > and | are all taught as basic shell operations. we use >, >> often to redirect to files.etc.. same with < for input.