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!

[color red]Search error[/color]

Status
Not open for further replies.

amins

Technical User
Jan 17, 2002
40
BE
Hi,
I am using an AIX machine and I frequently issue the following command to search for a word in all the files under the current directory:

find . -exec grep -q "word" {} \; -print
However, I frequently get the following error message:

grep: 0652-226 Maximum line length of 2048 exceeded.

Can anybody tell me how to cure it?
thank you in advance.
 
amins,

This is a limitation is the native AIX grep command. You will need something like GNU grep to get past this limitation, you can download it for AIX 5.1 at:


Cheers



PSD
IBM Certified Specialist - AIX V4.3 Systems Support
IBM Certified Specialist - AIX V4 HACMP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top