Last active
March 15, 2019 10:45
-
-
Save noyuno/c7cb83ea3d9978b331fea44a4406c598 to your computer and use it in GitHub Desktop.
This file contains 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
seq 2000 2019 | while read y ; do | |
[ "$y" = "" ] && break | |
rm -rf n$y | |
mkdir -p n$y | |
find . -type f |grep --color=no ./$y | while read i; do | |
a=$(dirname "$i") | |
a=$(basename "$a")-$(basename "$i") | |
cp -f "$i" "n$y/$a" | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment