TipLib Computer Forums  
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
rahoolmOffline
Post subject: Search and replace using sed  PostPosted: Dec 20, 2011 - 06:21 PM



Joined: Dec 20, 2011
Posts: 1

Status: Offline
If the string to replace contains / then use the following command to search and replace

Code:
sed s@string/containing/@replacing/with/stringcontaining/@g fileinput > fileoutput
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic