Error: “grep: Argument list too long” [duplicate]
问题 This question already has answers here : How can I grep while avoiding 'Too many arguments' [duplicate] (5 answers) Closed 4 years ago . I am trying to run the following command, but gets argument too long error. Can you help?. HOST# grep -rl 'pattern' /home/*/public_html/* -bash: /bin/grep: Argument list too long Is there a way to override this error and grep the pattern matching files I want in all users public_html directory. There are around 500+ users in the same server. 回答1: Use find