Thread
:
Any decent shell scripters in the house?
View Single Post
05-15-2008, 08:44 AM
mikesouth
Confirmed User
Industry Role:
Join Date: Jun 2003
Location: My High Horse
Posts: 6,334
Quote:
Originally Posted by
jdavis
I don't want it to create any sub directories in 'y' just dump ALL jpg's from 'x' and recursive directories
this'll do it
for x in `ls -1 -r (top level directory)/*.jpg`
do
mv $x (newdirectory)/.
done
__________________
Mike South
It's No wonder I took up drugs and alcohol, it's the only way I could dumb myself down enough to cope with the morons in this biz.
Last edited by mikesouth
; 05-15-2008 at
08:45 AM
..
mikesouth
View Public Profile
Visit mikesouth's homepage!
Find More Posts by mikesouth