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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -