1

Search among the content of a large number of plain text files?

view story
linux-howto

http://unix.stackexchange.com – I have a directory with 1,242,276 plain text files on my external hard drive. They are totally unorganized with meaningless numbers as their file names. The reason for that is because they were recovered by some recovery software after accidentally emptying a partition a while ago. I am now under that directory and want to search for a word "polyhedron" among the content of all the files. I tried grep, but it failes: $ grep polyhedron ./* bash: /bin/grep: Argument list too long Is it because there are too many files under that directory? Also I would like to search for many other differen (HowTos)