FAL-soluzioni/03-mv_files/02.sh
2019-05-11 14:17:48 +02:00

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