Home » Infrastructure » Unix » Appending a value at the end of each line
Appending a value at the end of each line [message #296876] Tue, 29 January 2008 06:54 Go to next message
bhalotias
Messages: 12
Registered: January 2008
Junior Member
Hi,

Can anyone tell me how to add (append) a value at the end of each line of a flat file, using ksh shell script.

Regards,
Saurabh
Re: Appending a value at the end of each line [message #296894 is a reply to message #296876] Tue, 29 January 2008 07:19 Go to previous messageGo to next message
Michel Cadot
Messages: 58612
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
This is not an Oracle question.

Regards
Michel
Re: Appending a value at the end of each line [message #296981 is a reply to message #296876] Tue, 29 January 2008 16:19 Go to previous messageGo to next message
ebrian
Messages: 2794
Registered: April 2006
Senior Member
Hint...
	man sed
Re: Appending a value at the end of each line [message #297114 is a reply to message #296981] Wed, 30 January 2008 03:29 Go to previous message
tahpush
Messages: 961
Registered: August 2006
Location: Stockholm/Sweden
Senior Member

Double Hint

echo '1;2;3;4' | sed 's/$/|/'
1;2;3;4|
Previous Topic: Passing arguments to Sql Loader (merged)
Next Topic: VI EDITOR
Goto Forum:
  


Current Time: Tue Jul 29 18:32:03 CDT 2014

Total time taken to generate the page: 0.11575 seconds