[Gllug] shell quoting problem

Sean Burlington sean at practicalweb.co.uk
Wed Jul 2 10:06:46 UTC 2008


Andy Millar wrote:
> Have you tried something like:
> 
> find / -name "*John Smith*"
> 
> And, if you want to ls them, you could:
> 
> ls -l `find / -name "*John Smith*"`
> 

That trips up on the spaces

This works for me

find / -name "*John Smith*" -exec ls -lh {} \;

-- 

Sean Burlington

www.practicalweb.co.uk

-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list