The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 -->
  #4 (permalink)  
Old 03-18-2008
nua7 nua7 is offline
Registered User
  
 

Join Date: Mar 2008
Location: /bin/sh
Posts: 353
Wink

Agreed with era..

But to get you going , following is the one of the most common usgaes of tr -d..

Code:
ls -l /home/nua7 | tr -d " " | cut -d " " -f2
This would list all files in the given path, equally space out the fields with a space " ", which is further used as a demiliter in cut command.

Hope this helps..!

Last edited by Yogesh Sawant; 03-18-2008 at 08:30 AM.. Reason: added code tags