[Gllug] shell quoting problem
Paul Thompson
pthompson at novell.com
Wed Jul 2 10:09:45 UTC 2008
On Wed, Jul 02, 2008 at 10:47:13AM +0100, Alain Williams wrote:
> I was just wondering if there was anything simpler and completely obvious that
> I had overlooked ?
>
Alain,
As Perl doesn't automatically do word-splitting on input lines, this should work:
locate -r John\ Smith | perl -wnl -e 'print -s , " $_"'
Regards,
--
Paul Thompson
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list