The UNIX and Linux Forums  


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




Thread: Trim issue
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 04-28-2008
denn denn is offline
Registered User
  
 

Join Date: Jul 2007
Posts: 96
agreed, it's very unclear what you're wanting to do..2 things however,
tr is "translate charachters" not trim!
the format you're using is not correct, you don't have double quotes formatted correctly."actually you don't have double-quotes.


Code:
tr -s " "`"  ## 3 quotes, not 4!
you also might want to use the ascii equiv to "`" char
or 
tr -s " " "\`"