Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Feb 2005 21:58:28 +0100 (CET)
From:      "Lars Kristiansen" <lars+lister.freebsd@adventuras.no>
To:        freebsd-questions@freebsd.org
Subject:   Re: ye ol xargs unterminated quote error, thought it was gone?
Message-ID:  <56496.213.236.228.129.1108155508.squirrel@mail.adventuras.no>
In-Reply-To: <fccd6b7a6cc882d5c123bb7d0f7c7953@broadjam.com>
References:  <fccd6b7a6cc882d5c123bb7d0f7c7953@broadjam.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?56496.213.236.228.129.1108155508.squirrel>