ecrossahoo
November 20th, 2008, 07:53 PM
Hi Forum,
I have a "challenge" I have not been able to solve. I have a file that contains the following
host1.domain.com
beth
albert
vanessa
julie
host2.domain.com
robert
jake
clare
lisa
I would like to add a newline above every line that contains *.domain.com. So the resulting file would like like:
host1.domain.com
beth
albert
vanessa
julie
host2.domain.com
robert
jake
clare
lisa
Can someone assist with a little search/replace magic?
](*,)
Thank You.
I have a "challenge" I have not been able to solve. I have a file that contains the following
host1.domain.com
beth
albert
vanessa
julie
host2.domain.com
robert
jake
clare
lisa
I would like to add a newline above every line that contains *.domain.com. So the resulting file would like like:
host1.domain.com
beth
albert
vanessa
julie
host2.domain.com
robert
jake
clare
lisa
Can someone assist with a little search/replace magic?
](*,)
Thank You.