Jonathan Simpson on 30 Jul 2015 09:10:30 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] xargs guide


This is good stuff, thanks!
I use xargs pretty heavily but it's nice to see some other use cases.

On Thu, Jul 30, 2015 at 11:43 AM,  <bergman@merctech.com> wrote:
> In the message dated: Thu, 30 Jul 2015 00:28:51 -0400,
> The pithy ruminations from Michael Lazin on
> <Re: [PLUG] xargs guide> were:
> => I also use xargs, for example, to find a malware string in php code, like
> => "find . -name '*,php' | xargs grep 'malware url on google malware report' | cut -d: -f1"
>
> Ick.
>
> With a suitably modern version of grep:
>
>         grep -rl --include="*,php" 'malware url on google malware report' /path/to/dirs/with/php_files
>
> Mark
>
> ___________________________________________________________________________
> Philadelphia Linux Users Group         --        http://www.phillylinux.org
> Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
> General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug