标签:usr 目录 cat 批量 echo .sh ash /usr 创建目录
(1) cat for.sh
#!/bin/bash
for((i=1;i<=254;i++));
do
mkdir /usr/local/photobak/192.168.7.$i
echo mkdir /usr/local/photobak/192.168.7.$i;
done
(2) mkdir /usr/local/photobak/192.168.7.{1..254}
标签:usr 目录 cat 批量 echo .sh ash /usr 创建目录
原文地址:http://www.cnblogs.com/qinyujie/p/7691274.html