Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- ordnername=$1
- anzahl=$2
- s08pfad=$(whereis s08.sh);
- if [ ! -d "$ordnername" ];then
- echo "ordner $ordnername wird erstellt";
- echo "der Ordner hat $anzahl unterordner";
- mkdir -m 777 $ordnername;
- cd $ordnername;
- for((i=0;i<anzahl;i++))do
- read -p "name vom Ordner eingeben:" nextOrdner;
- mkdir -m 400 $nextOrdner;
- echo "$nextOrdner wurde erstellt";
- done
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement