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

remove new line (\n) from line before matched

Status
Not open for further replies.

ogniemi

Technical User
Nov 7, 2003
1,041
PL


hello

example input:

aaaa
bbbb
cccc

so when matched line would be bbbb, expected output would be:

aaaa bbbb
cccc


thank you in advance for a short sed/awk code.
 
What have you tried so far and where in your code are you stuck ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top