批量创建目录

(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}

 

posted @ 2017-10-19 10:53  GeminiMp  阅读(1017)  评论(1编辑  收藏  举报