Computing.Net > Forums > Programming > sed end of line

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

sed end of line

Reply to Message Icon

Name: RNB
Date: September 29, 2005 at 07:57:15 Pacific
OS: AIX 5.3
CPU/Ram: ???
Comment:

How do I use sed to add information to the end of every line in a file?

RNB.




Sponsored Link
Ads by Google

Response Number 1
Name: Dr. Nick
Date: October 1, 2005 at 00:36:22 Pacific
Reply:

That's not too hard. Run:

sed 's/$/end-of-line-text/g' filename

And it will put "end-of-line-text" at the end of each line of text.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: sed end of line

How to remove end-of-line in a file www.computing.net/answers/programming/how-to-remove-endofline-in-a-file/10873.html

Sed:Add text to end of line in file www.computing.net/answers/programming/sedadd-text-to-end-of-line-in-file/15109.html

Find a matching line and extract till end of www.computing.net/answers/programming/find-a-matching-line-and-extract-till-end-of-/18943.html