The UNIX and Linux Forums  

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




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

Join Date: Mar 2008
Location: NYC
Posts: 76
I'm not certain I'm following what you're saying, but if I do...

Code:
cat in|tr "|" "," > out
should give you what you want. I don't think I understand why your SED statement isn't working, but tr will replace the |'s with ,'s