(1) cat for.sh
#!/bin/bash for((i=1;i<=254;i++)); do mkdir /usr/local/photobak/192.168.7.$iecho mkdir /usr/local/photobak/192.168.7.$i; done
(2) mkdir /usr/local/photobak/192.168.7.{1..254}