Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    can't grep in the RH system


    When I grep a file find the system by "grep -i "edp" ./*" , then it pop the below message , I think it is because too many files in the system, could suggest how to fix it ? thx.

    bash: /bin/grep: Argument list too long

  2. #2

    Re: can't grep in the RH system

    Quote Originally Posted by ust
    When I grep a file find the system by "grep -i "edp" ./*" , then it pop the below message , I think it is because too many files in the system, could suggest how to fix it ? thx.

    bash: /bin/grep: Argument list too long
    How many files do you have in your current directory? "ls | wc -l" will tell you.
    You could use xargs to deliver large quantities of arguments to programs, "man xargs" for more details.

    Also, you could just use * instead of ./* to get your file list.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •