11 lines
170 B
Bash
11 lines
170 B
Bash
#!/usr/bin/env bash
|
|
|
|
cd Archivio
|
|
mkdir {Mon,Tue,Wed,Thu,Fri,Sat,Sun}
|
|
|
|
for FOLDER in $(ls -1 2019*)
|
|
do
|
|
DAY=$(date --date=${FOLDER%:} +%a)
|
|
mv ${FOLDER%:} $DAY
|
|
done
|