The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 08-10-2007
quintet quintet is offline
Registered User
  
 

Join Date: Jun 2006
Posts: 94
you can try these as well

leading spaces :

tail -1 file1| sed -e "s/^ *//"

trailing spaces :

tail -1 file1| sed -e "s/ *$//"