Re: Some basic unix commanding, more please:
On Fri, 14 Jul 2000, Peter S Galbraith wrote:
> To lowercase the names:
> $ for file in *HTM; do mv $file `echo $file | tr A-Z a-z`; done
> then you can change the extension from .htm to .html
> The trick aboave was embedding a shell command within `backtics`.
> It get executed before the command is evaluated. e.g.
> $ echo TESTING | tr A-Z a-z
> (See also the `mmv' command in the mmv package for another way to
> do these things).
OK, it seems to be working. I did it by copying them (so that the
originals are there as well, because I have got those files on my hd
for file in NODE*; do cp $file `echo $file | tr A-Z a-z`; done
Thanks a lot.