Home » Infrastructure » Unix » String substitution with sed in a file
String substitution with sed in a file [message #97006] Fri, 19 October 2001 11:38 Go to next message
Laxsun
Messages: 10
Registered: October 2001
Junior Member
Please some can help me how to add a string
to the end of each and every line in a file.

----------------------------------------------------------------------
Re: String substitution with sed in a file [message #97007 is a reply to message #97006] Fri, 19 October 2001 12:20 Go to previous message
Ben
Messages: 48
Registered: January 2000
Member
Laxsun,

Open your file with vi. Inside vi, run this command:

:%s/$/{String}/g

I hope this helps.

Ben

----------------------------------------------------------------------
Previous Topic: Re: RMAN on NT target db and catalog on UNIX
Next Topic: Re: Oracle on Redhat Linux
Goto Forum:
  


Current Time: Wed Apr 17 22:03:22 CDT 2024