Get around this errorr?? grep: 0652-226 Maximum line length of 2048 exceeded.
How do I get around this 2048 error again? Thank you. find /home -type f -exec grep 'string' {} \; -exec ls {} grep: 0652-226 Maximum line length of 2048 exceeded. grep: 0652-226 Maximum line length of 2048 exceeded. grep: 0652-226 Maximum line length of 2048 exceeded. grep: 0652-226 Maximum line length of 2048 exceeded. grep: 0652-226 Maximum line length of 2048 exceeded. grep: 0652-226 Maximum line length of 2048 exceeded. grep: 0652-226 Maximum line length of 2048 exceeded.
On Friday 30 September 2005 20:25, Patrick B. O'Brien wrote:
How do I get around this 2048 error again? Thank you.
find /home -type f -exec grep 'string' {} \; -exec ls {}
grep: 0652-226 Maximum line length of 2048 exceeded.
For starters, this is an AIX error message. Perhaps try using gnu grep?
Fri, 30 Sep 2005, by pobrien@doit.nv.gov:
How do I get around this 2048 error again? Thank you.
find /home -type f -exec grep 'string' {} \; -exec ls {}
grep: 0652-226 Maximum line length of 2048 exceeded.
Use xargs(1) in stead of -exec Theo -- Theo v. Werkhoven Registered Linux user# 99872 http://counter.li.org ICBM 52 13 26N , 4 29 47E. + ICQ: 277217131 SUSE 9.2 + Jabber: muadib@jabber.xs4all.nl Kernel 2.6.8 + See headers for PGP/GPG info. Claimer: any email I receive will become my property. Disclaimers do not apply.
On Friday 30 September 2005 22:41, Theo v. Werkhoven wrote:
Fri, 30 Sep 2005, by pobrien@doit.nv.gov:
How do I get around this 2048 error again? Thank you.
find /home -type f -exec grep 'string' {} \; -exec ls {}
grep: 0652-226 Maximum line length of 2048 exceeded.
Use xargs(1) in stead of -exec
How would that help? -exec gets only one file name as a parameter. It gets executed once per file. The problem here is that the AIX version of grep only handles lines of 2048 characters at most
participants (3)
-
Anders Johansson
-
Patrick B. O'Brien
-
Theo v. Werkhoven