Move/Copy using loop through bash

PHOTO EMBED

Thu Jan 18 2024 18:00:53 GMT+0000 (Coordinated Universal Time)

Saved by @diptish #bash

#!/bin/sh

for i in {1979..1980}
do
    echo "output: $i"
    dir2=$((i+1))
    cp /from/$i/FILE:$i-08* /from/$dir2/
    mv  /from/$i/FILE:$i-09* /from/$dir2/
    
    
done
content_copyCOPY