-
-
Save shakirullahi/f3cdf0bd5316ac26bf33 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
#!/bin/bash | |
# change docRoot | |
docRoot=~/src/shakir/ | |
for semester in */; | |
do | |
semester="${semester%?}" | |
cd "$docRoot/$semester/" | |
for branch in */; | |
do | |
branch="${branch%?}" | |
cd "$docRoot/$semester/$branch/" | |
for subject in */; | |
do | |
subject="${subject%?}" | |
cd "$docRoot/$semester/$branch/$subject" | |
for examdate in */; | |
do | |
examdate="${examdate%?}" | |
cd "$docRoot/$semester/$branch/$subject/$examdate" | |
mv 2.pdf "$semester$branch$subject$examdate.pdf" | |
ls | |
done | |
done | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment