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!

match end if the file, reg. exp. ???

Status
Not open for further replies.

bobetko

Programmer
Jan 14, 2003
155
US

1) How to add new line on the end of the file using SED and basic regular expressions?

Thanks
 
Thanks.

I've figured I can do something like

Code:
sed '$a\line to input' input.txt > output.txt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top