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
### Keybase proof | |
I hereby claim: | |
* I am neilscudder on github. | |
* I am neilscudder (https://keybase.io/neilscudder) on keybase. | |
* I have a public key ASBVThl928LV4a1_wDSMV4l6qvDsdWgBD-fKPlWT-Rp1uQo | |
To claim this, I am signing this object: |
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 | |
main() | |
{ | |
local FILE | |
local NEWDIR | |
local WORKINGDIR="." | |
for i in "$WORKINGDIR"/*; do # Loops through all files | |
[ -d "$i" ] && continue # Skips directories | |
FILE=$(basename "$i") # Extracts filename from path | |
# Next line skips files without pattern like S01E09, S10E11 etc. |