Oct 6, 2003 #1 farley99 MIS Joined Feb 12, 2003 Messages 413 Location 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 Joined Nov 8, 2002 Messages 53,708 Location FR find . -name '*.jpg' -print Hope This Help PH. Upvote 0 Downvote
Oct 6, 2003 Thread starter #3 farley99 MIS Joined Feb 12, 2003 Messages 413 Location 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 Joined Nov 8, 2002 Messages 53,708 Location 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 Joined Aug 8, 2002 Messages 3,186 Location 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.
Oct 7, 2003 1 #6 ejongh Programmer Joined Nov 24, 2002 Messages 3 Location NL Try using ls -R *.jpg Upvote 0 Downvote