[Gllug] shell quoting problem

Alain Williams addw at phcomp.co.uk
Wed Jul 2 10:01:49 UTC 2008


On Wed, Jul 02, 2008 at 10:51:05AM +0100, 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*"`

* locate (essentially) does the same job as 'find /' but is much faster.
* `command` is the same as $(command)
* your solution has the same space problem.

> I'm not sure if this is any nicer than your current solution.

My solution works.

-- 
Alain Williams
Linux Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256  http://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php
Chairman of UKUUG: http://www.ukuug.org/
#include <std_disclaimer.h>
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list