[Gllug] find mystery

Craig Millar gllug at craigmillar.org
Thu May 4 09:39:19 UTC 2006


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]

So, anyone have an idea why the _exact_ same command fails in the second
folder? It works everywhere else, and also includes files from the Documents
folder when run in my home directory.

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




More information about the GLLUG mailing list