[Solved] Create directory structure in unix [closed]


current_year=$(date +%Y)
next_month=$(($(date +%m) + 1))
locale_next_month=$(date -d$current_year/$next_month/1 +%B)

for day_of_month in $(seq 1 31)
do
  if day_of_year=$(date -d$current_year/$next_month/$day_of_month +%j 2> /dev/null)
  then
    mkdir -p /home/applications/app_name/$current_year/$locale_next_month/$day_of_year
  fi
done

1

solved Create directory structure in unix [closed]