[Gllug] find mystery

Ryland, Peter peter.ryland at squaregain.co.uk
Thu May 4 10:03:31 UTC 2006


On Thu, 2006-05-04 at 09:39 +0000, Craig Millar wrote:
> I'm having trouble with find, as demonstrated:
> 
> craig at lear:~> pwd
> /home/craig
> craig at lear:~> find . -name *.jpg -exec ls -lh {} \;
> ./bin/Last.fm/cache/static1.last.fm_coverart_130x130_1416458.jpg
> ./bin/Last.fm/cache/static1.last.fm_coverart_130x130_146342.jpg
> 
> 8< -------- snip the rest, working normally ------- >8
> 
> craig at lear:~> cd Documents/
> craig at lear:~/Documents> find . -name *.jpg -exec ls -lh {} \;
> find: paths must precede expression
> Usage: find [-H] [-L] [-P] [path...] [expression]

BTW, you may find:

find . -ls

easier than:

find . -exec ls -l {} \;

but is less configurable in output.

Pete


*****************************************************************************
This communication is confidential and is intended solely for 
the use of the individual or entity to whom they are addressed. 
If you are not that person you are not permitted to make use of 
the information and you are requested to notify 
postmaster at squaregain.co.uk immediately that you have 
received it and then destroy the copy in your possession. 
Squaregain Ltd is authorised and regulated by the 
Financial Services Authority and is a member of the LSE.
******************************************************************************

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




More information about the GLLUG mailing list