Oct 6, 2003 #1 farley99 MIS Feb 12, 2003 413 US how do i list all .jpg files for my current directory and below? I tried ls -r *.jpg but it only does the directory I am in.
how do i list all .jpg files for my current directory and below? I tried ls -r *.jpg but it only does the directory I am in.
Oct 6, 2003 1 #2 PHV MIS Nov 8, 2002 53,708 FR find . -name '*.jpg' -print Hope This Help PH. Upvote 0 Downvote
Oct 6, 2003 Thread starter #3 farley99 MIS Feb 12, 2003 413 US bash-2.05a$ find . -name *.htm -exec ls -la {} \; find: paths must precede expression Usage: find [path...] [expression] bash-2.05a$ find . -name *.htm -exec chmod 777 {} \; find: paths must precede expression Usage: find [path...] [expression] Why do i get that error? Got any tips? Upvote 0 Downvote
bash-2.05a$ find . -name *.htm -exec ls -la {} \; find: paths must precede expression Usage: find [path...] [expression] bash-2.05a$ find . -name *.htm -exec chmod 777 {} \; find: paths must precede expression Usage: find [path...] [expression] Why do i get that error? Got any tips?
Oct 6, 2003 #4 PHV MIS Nov 8, 2002 53,708 FR Try something like this: Code: find . -name '*.htm' -exec ls -la {} \; # ^ ^ If the error persists, post the result of Code: pwd command Hope This Help PH. Upvote 0 Downvote
Try something like this: Code: find . -name '*.htm' -exec ls -la {} \; # ^ ^ If the error persists, post the result of Code: pwd command Hope This Help PH.
Oct 6, 2003 #5 SamBones Programmer Aug 8, 2002 3,186 US Also, some shells need the braces escaped. Code: find . -name '*.htm' -exec ls -la \{\} \; And make sure there's a space in front of the "[tt]\;[/tt]". The Korn shell seems to be picky about this. Hope this helps. Upvote 0 Downvote
Also, some shells need the braces escaped. Code: find . -name '*.htm' -exec ls -la \{\} \; And make sure there's a space in front of the "[tt]\;[/tt]". The Korn shell seems to be picky about this. Hope this helps.