30 Sep
2005
30 Sep
'05
20:49
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