Posted on 2000-03-24
I have a directory with a few thousand files. For this reason I use following command to grep them :
ls -1 | xargs grep UPDATE
Unfortunately a few of these files have some very long lines and grep outputs a couple of :
grep : 0652-226 ...
followed by a message saying that the maximal length of a line (2048) is reached.
I have no idea what file exactly have the problem (as I said I have a few thousands of them), and even worse, I don't know if it is just a display problem or if I may have missed some of the UPDATE words I am looking for.
Please help me without being to specific about my command which is only an example, I have the problem of the lines too long all the time.
Furthermore, for many uninteresting reasons I am not able to split my files in multiple subdirectories.
Thanks a lot