Create folder with mkdir with loop in Bash -
i want create folders in bash taking months reference in loop, month in curse , future months, have code generate first folder.
echo "probando desde vim" echo "vim" if [ -d "$home/desktop/$(date +%b)" ] echo "si existe" else mkdir $home/desktop/$(date +%b) echo "la carpeta fue creada" fi !/bin/bash home_dirs="$home/desktop/" date_dir=$(date +%b) folder in $home/desktop/; mkdir -p "${folder}/${date_dir}" done
Comments
Post a Comment