質問箱/27

Top > 質問箱 > 27

#!/bin/sh
for i in "$@"; do
  if [ -d $i ]; then
    echo "directory $i exists."
  else
    mkdir $i;
    echo "making directory $i."
  fi
done
#!/bin/sh
for i in "$@"; do
  mkdir "$i" && echo "made directory $i." || echo "directory  $i exists."
done

URL B I U SIZE Black Maroon Green Olive Navy Purple Teal Gray Silver Red Lime Yellow Blue Fuchsia Aqua White

xrea