Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
who's good at the terminal? need to move a bunch of files into directories
#3
Assuming you are in the directory where all the photo files reside, and that you want to add directories in the same directory:

$ mkdir -p 2009-11/08
$ mv 91108* 2009-11/08

will create the new directory (actually a new directory 2009-11 and a subdirectory 08 within that) and move all files beginning 91108 into the new (sub)directory.

I'll have to think a bit about processing all of 2009 ...
Reply


Messages In This Thread
Re: who's good at the terminal? need to move a bunch of files into directories - by TheCaber - 12-04-2009, 04:54 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)