The UNIX and Linux Forums  


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




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 03-11-2008
nua7 nua7 is offline
Registered User
  
 

Join Date: Mar 2008
Location: /bin/sh
Posts: 353
Looks like there is a syntax problem. check if all the loops are closed.
cat file1 | tr -s " " | cut -d " " -f 2

This command opens the file, tr-s command deletes the extra spaces, so that space can be used as a delimiter.

For more information, man cut...