Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- find . -type f -iname '*.Gbx' -print0 |
- while IFS= read -r -d $'\0' file; do
- title=$(grep -aPo 'title="(.*?)"' "$file" | sed -r 's/.*?="(.*)"/\1/g')
- titledir="repack/$title"
- if [ ! -d $titledir ]; then
- mkdir -vp $titledir
- fi
- filename=$(basename "$file")
- cp -v "$file" "$titledir/$filename"
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement