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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sed command

Status
Not open for further replies.

unixwhoopie

Programmer
May 6, 2003
45
US
I am trying to use sed command to search for a character in a text file and replace all the instances with another character. Can someone give me an example?

Thanks
 
sed 's!x!y!g' /path/to/input >output
You may also consider tr.
man sed
man tr


Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top