1. 程式人生 > >批量創建目錄

批量創建目錄

cal 批量創建 usr bak bin done photo /usr i++

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

批量創建目錄