Trancemission
Technical User
I have 100's of files which contain whois output. I need to search these files for a string, move down 3 lines then print the next 2/3 lines (well pipe them to grep)
The only problem is I can't do it Any help would be appreciated.
File format (db.domain.com):
Blah Blah Blah.....
Blah Blah Blah.....
Blah Blah Blah.....
Blah Blah Blah.....
Domain servers listed in order: <- Text I want to search for
ns.domainserver.com <- Text I want to retrieve
ns2.domainserver.com <- Text I want to retrieve
Blah Blah Blah......
Blah Blah Blah......
Blah Blah Blah......
Blah Blah Blah......
Blah Blah Blah......
Blah Blah Blah...... Trancemission
=============
If it's logical, it'll work!
The only problem is I can't do it Any help would be appreciated.
File format (db.domain.com):
Blah Blah Blah.....
Blah Blah Blah.....
Blah Blah Blah.....
Blah Blah Blah.....
Domain servers listed in order: <- Text I want to search for
ns.domainserver.com <- Text I want to retrieve
ns2.domainserver.com <- Text I want to retrieve
Blah Blah Blah......
Blah Blah Blah......
Blah Blah Blah......
Blah Blah Blah......
Blah Blah Blah......
Blah Blah Blah...... Trancemission
=============
If it's logical, it'll work!