So, I have these folders:
../listdata/
../listdata/.scripts/
../listdata/.scripts/.subscripts/
inside of ../listdata/ are a bunch of folders going up to 100
example:
../listdata/1/
../listdata/2/
../listdata/9/
../listdata/25/
../listdata/100/
Anyway, the way I had it, I used the mv command and had all 100 folders listed (100+ lines of code). I mean, this was the only way I could do it without lots of scripting knowledge. My knowledge has increased since then, but I guess not enough. I figured using metacharacters and wildcards in the proper way would simplify things, but I haven't been able to get anything to work.
so, i tried doing this now
the .movescripts folder is inside of ../listdata/.scripts/
$ bash ./.movescripts.sh/
Code:
#!/bin/sh
mv ./.subscripts/.script1.sh ./.subscripts/.script2.sh ./.subscripts/.script3.sh ./.subscripts/.script4.sh ../listdata/[0-9]/
mv ./.subscripts/.script1.sh ./.subscripts/.script2.sh ./.subscripts/.script3.sh ./.subscripts/.script4.sh ../listdata/?[0-9]/
mv ./.subscripts/.script1.sh ./.subscripts/.script2.sh ./.subscripts/.script3.sh ./.subscripts/.script4.sh ../listdata/??[0-9]/
each is suppose to be representative of each 0-9, 10-99, and 100-999 folders. But it doesn't work. I don't know why. Matter of fact, it likes to add files to folder "98," which doesn't make sense to me. I don't know what to do, really. I tried googling this, and I can't figure it out.