Created
December 2, 2020 07:53
-
-
Save jupegarnica/99cf82f94024bdfd833c5d8850c88b03 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# FILES=./files/* | |
TARGET=./new # make sure that folder exists! | |
COUNTER=1 # if you want to start from 0, just put 0 there | |
for f in $(ls -t files/*) | |
do | |
echo "Processing $f file..." | |
mv -i $f $TARGET/$COUNTER"___"${f##*/} | |
let "COUNTER++" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment