ye ol xargs unterminated quote error, thought it was gone?

Lars Kristiansen lars+lister.freebsd at adventuras.no
Fri Feb 11 20:58:54 GMT 2005


> when I use the usual:
>
> find . -type f -print | xargs grep -sl foobar

Have you tried:
find . -type f -print0 | xargs -0 grep -sl foobar

>
> i get;
>
> xargs unterminated quote error and have to use:
>
> find . -type f -print | sed 's/^\(.*\)$//'\1'/' | xargs grep -sl foobar
>
> to quote the output from find. anyone know a more elegant solution?
>
> thoughts?
>
> ken;
>
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe at freebsd.org"
>



More information about the freebsd-questions mailing list