Mon, 29 Jul 1996 12:55:20 -0400
|
On Mon, 29 Jul 1996, David Nessl wrote:
> Take a few minutes to learn some Unix --
Thanks! I would but the sad fact is that "unix does not equal unix" :-(
> after transfering all the log
> files (say using ftp "mget *.LOG*") you can mass-rename the log files
> using a single pipeline. Here's one way (not necessarily the best) which
> assumes the LOG files are in the current-directory:
>
> find . -name '*.LOG*' -maxdepth 1 -print \
> | awk '{print $1,tolower($1)}' \
> | xargs -t -n2 mv
I get:
find: bad option -maxdepth
find: path-list predicate-list
So I removed the '-maxdepth 1' and got:
mv ./NYCOMNET.LOG9501 ./NYCOMNET.LOG9501
mv: ./NYCOMNET.LOG9501 and ./NYCOMNET.LOG9501 are identical
mv ./NYCOMNET.LOG9502 ./NYCOMNET.LOG9502
mv: ./NYCOMNET.LOG9502 and ./NYCOMNET.LOG9502 are identical
mv ./NYCOMNET.LOG9503 ./NYCOMNET.LOG9503
mv: ./NYCOMNET.LOG9503 and ./NYCOMNET.LOG9503 are identical
mv ./NYCOMNET.LOG9504 ./NYCOMNET.LOG9504
mv: ./NYCOMNET.LOG9504 and ./NYCOMNET.LOG9504 are identical
mv ./NYCOMNET.LOG9505 ./NYCOMNET.LOG9505
mv: ./NYCOMNET.LOG9505 and ./NYCOMNET.LOG9505 are identical
mv ./NYCOMNET.LOG9506 ./NYCOMNET.LOG9506
mv: ./NYCOMNET.LOG9506 and ./NYCOMNET.LOG9506 are identical
mv ./NYCOMNET.LOG9507 ./NYCOMNET.LOG9507
mv: ./NYCOMNET.LOG9507 and ./NYCOMNET.LOG9507 are identical
mv ./NYCOMNET.LOG9601 ./NYCOMNET.LOG9601
mv: ./NYCOMNET.LOG9601 and ./NYCOMNET.LOG9601 are identical
sigh :-(
Jim...
|
|
|