Dec 19, 2012

openSUSE Forums: 求一个改名程序

openSUSE Forums
openSUSE Forums
求一个改名程序
Dec 20th 2012, 01:38

我写了一个改名程序。把目录下的*.txt依次改为1.c 2.c 3.c ....
#!/bin/bash
for file in 'ls *.txt'
do
mv $file $i.txt
i=$i+1
done
就 是通不过,求高人改正。

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

No comments: