#!/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
#!/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