[lkml]   [1999]   [Mar]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: Arg list too long

    > Hi!
    > For the first time, I just got this error message:
    > bash: /usr/local/bin/grep: Arg list too long
    > (I was searching using ``grep string */*'', now I'll do it
    > in a different way)
    > I'm wondering whether this is a bash or Linux process limit.
    > Is there a limit in Linux for the length of /proc/[0-9]+/cmdline?

    it's a bash limit for sure; I usually use a formula like the following:

    find . -type f -print | xargs grep string /dev/null

    (-type f limits results to regular files; you may wish to use -print0
    and the -0 option to xargs if you have files with spaces in the filenames;
    the "/dev/null" at the end is to force grep to always output the filename.)
    Kevin L. Mitchell <>
    ------------------------- -. .---- --.. ..- -..- -------------------------- (PGP keys availiable from here)
    RSA AE87D37D/1024: DE EA 1E 99 3F 2B F9 23 A0 D8 05 E0 6F BA B9 D2
    DSS ED0DB34E/1024: D9BF 0E74 FDCB 43F5 C597 878F 9455 EC24 ED0D B34E
    DH 2A2C31D4/2048: 1A77 4BA5 9E32 14AE 87DA 9FEC 7106 FC62 2A2C 31D4

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:50    [W:0.018 / U:18.460 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site