Sunday, 16 June 2019

grep: Argument list too long

Was grepping a text in a directory containing too many files and got this error


$ grep key * 
bash: /usr/bin/grep: Argument list too long

Found the nice was to overcome this is:


$ grep -r key .   

No comments :