Thanks Tobi!!!
When I run your script I get directories named
ABC.packed.dir
DEF.packed.dir
GHI.packed.dir
etc...
I would like them to have more of the usual naming convention
ABC
DEF
GHI
etc...
so I was thinking that I could first run your script and then add on to it:
Code:
for filename in *.packed
do
mkdir $filename.dir
mv $filename $filename.dir
done
for dirname in *.packed.dir
do
rename $dirname.packed.dir $dirname *dirname.packed.dir
done
thinking I could use a second for/do loop that starts up after all the directories are created and the files are moved inside them, but as you know (and I don't) that doesn't work
I searcehed on the web and theres lots of posts about how to rename files, but not directories
I think I can simply add a second for/do loop after another and get it to run because I did
Code:
for dirname in *.packed.dir
do
echo 1
done
and a series of 1 was printed to the screen.
I'm self taught and so slow learning, so I greatly appreciate your help and your teaching!
Tabitha