adrian kok wrote:
Hi all
how can I have script to rename the following directory pattern from
from
dir-192.168.30.0 dir-192.168.30.144 dir-192.168.30.184
To:
dir-10.0.30.0 dir-10.0.30.144 dir-10.0.30.184
If this is to rename individual files from 192.168.30.0=>192.168.30.144 then
for (( i = 0 ; i <= 143; i++ )) do mv 192.168.30.$i 10.0.30.$i done
thank you
You're welcome.
http://www.freeos.com/guides/lsst/