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

Sed - expression question

Status
Not open for further replies.

pho01

Programmer
Mar 17, 2003
218
US
What expression would you use to remove an equal sign (=) and and equal sign 20 (=20) at the end of the line?

For some reason, in unix, the mail program automatically adds a "=" or "=20" at the end of the line, and i'd like to get rid of it.
Thanks!
 
sed 's/=\n/\n/' input.txt > output.txt
sed 's/=20\n/\n/' input.txt > output.txt


Chacal, Inc.[wavey]
 
Thanks Chacal,

Unfortunately, sed only allows up to max lines. on my machine, it only display the output up to 1122 lines. everything else got cut.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top