Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

replacing commas with ¦'s

Status
Not open for further replies.

krpst19

Programmer
Jun 22, 2001
10
US
I have a text file that has several hundred lines. I would like to replace the commas in each line with |'s. Is there an easy way to do this?
thanks
K
 
ooops - wrong replacement [ , => | ]

sed -e 's/\,/\|/g' myFile.txt

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top