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

Grep file with lines exceeding 2048 caracters 2

Status
Not open for further replies.

Barn

Technical User
Feb 22, 2002
37
FR

Is it possible to "grep" this kind of file?

Thank in advance.
Barn.
 
You might be able to do it with "strings filename |grep text"...
 
Get hold of the GNU version of grep at Bull's freeware site, it does the trick.
Note, it installs to /usr/local/bin instead of /usr/bin, so remember to give the full path, or create yourself an alias in your .profile. IBM Certified Confused - MQSeries
IBM Certified Flabbergasted - AIX 5 pSeries System Administration
 
while you are getting gnu software, also get vim to replace vi and possibly gawk. have not used gawk but regular vi has annoying limitations on file, string and line length. IBM Certified -- AIX 4.3 Obfuscation
 
Yego - agreed, we use vim as well, for the same 2048 limitation reason. Same goes for gzip/gunzip for it's obvious reduced filesize advantages over compress. IBM Certified Confused - MQSeries
IBM Certified Flabbergasted - AIX 5 pSeries System Administration
 

Hello guys,

Thenks for your answers. I'll try your suggestions.

Regards.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top