Quote:
Originally Posted by Tinkster
Why on earth would one want to? It's the other way round!
|
I'm compiling a bunch of old DOSBox apps/games. When I am finished I want to convert everything to uppercase, just for authenticity's sake.
Quote:
Originally Posted by Tinkster
And that said:
scripting :}
Pseudocode:
Code:
use find to determine max-depth of directory levels.
for depth in `seq 1 maxdepth`
for i in `find -type d -maxdepth depth -mindepth maxdepth ` do
new=(echo $i | tr '[a-z]' '[A-Z]')
mv i new
done
for i in `find -type f -maxdepth maxdepth -mindepth maxdepth ` do
new=(echo $i | tr '[a-z]' '[A-Z]')
mv i new
done
endloop
Cheers,
Tink
|
Thank you. I'll give it a shot.