View Full Version : Need shell command...
Tim Wheatley
Sat 10th Jan '04, 8:47am
Hi there,
I need a command to run in shell to move files from sub dirs into a single dir...
Like move:
folder1/folder2/file.zip
folder1/folder3/file2.zip
into
folder4/file.zip
folder4/file2.zip
Anyone?
Steve Machol
Sat 10th Jan '04, 12:28pm
mv folder1/folder2/* folder4
mv folder1/folder3/* folder4
This assumes you are running this from the parent directory of these directories.
Tim Wheatley
Sat 10th Jan '04, 1:35pm
Is there any way to get the folder number of the 'from' folder to automatically increase by one and run up to a number i specify?
Steve Machol
Sat 10th Jan '04, 2:08pm
Not that I'm aware of.
Raz Meister
Sat 10th Jan '04, 2:13pm
It is possible, but you will have to write some pretty snazzy bash commands...
http://www.gnu.org/software/bash/manual/bashref.html
vBulletin® v3.8.0 Beta 3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.