in reply to Re: grep or perl
in thread grep or perl

I used grep -rL instead of l ..... because I want to copy files that do not contain the previously mentioned string. But the number of files seems to stop this command from working. Does anyone have more suggestions?

Replies are listed 'Best First'.
Re: Re: Re: grep or perl
by halley (Prior) on Jun 04, 2003 at 13:22 UTC

    This is why another poster suggested xargs. xargs reads arguments from standard input, and executes a command with arguments. It chunks the input and repeats the command as required, to avoid going over any command-line-length limits of the shell.

    Instead of just (xargs --help), try (man xargs) for some examples (search for EXAMPLES) and details.

    --
    [ e d @ h a l l e y . c c ]

Re:^3 grep or perl
by flounder99 (Friar) on Jun 04, 2003 at 13:22 UTC
    That is why broquaint used xargs. It runs a command for each argument (whitespace separated) it gets on its STDIN. Try reading man xargs

    --

    flounder

Re: Re: Re: grep or perl
by nite_man (Deacon) on Jun 04, 2003 at 13:19 UTC
    Well, you are right about L but why doesn't grep -rL work? Maybe I didn't understand clearly but I checked this command and all are working correctly.
          
    --------------------------------
    SV* sv_bless(SV* sv, HV* stash);