Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Every game image in new/ comes from (playstation) redump (archive.org).
- Repack Redump zips to 7z:
- for zip in *.zip; do bn="${zip%.zip}"; mkdir "$bn"; cd "$bn"; arch_unpack ../"${zip}" && rm ../"${zip}"; cd ..; arch_pack "${bn}.7z" "$bn" && rm -rf "$bn"; done | tee /home/lucifer/zip_2_7z_log.txt
- ***
- Extract playstation 2 zips, and organize extracted files/directories:
- recursive_extract .; find . -type f -iname "*.iso" -exec mv -n -t . {} +; find . -type d -empty -exec rm -rf {} +
- ***
- Strip $session numbers from directory names:
- regex[session]='^(.*)(-[[:digit:]]+){2}$'
- for fn_in in *; do if [[ ! -d $fn_in ]]; then continue; fi; if [[ $fn_in =~ ${regex[session]} ]]; then fn_out="${BASH_REMATCH[1]}"; echo "$fn_out"; fi; done
- for fn_in in *; do if [[ ! -d $fn_in ]]; then continue; fi; if [[ $fn_in =~ ${regex[session]} ]]; then fn_out="${BASH_REMATCH[1]}"; echo "$fn_out"; mv -n "$fn_in" "$fn_out"; fi; done
- Find duplicates:
- declare -A roms
- regex[disc]='\(Disc [[:digit:]]+\)'
- for fn_in in *; do fn_out="${fn_in%%(*}"; if [[ -z ${roms[${fn_out}]} ]]; then roms["${fn_out}"]=1; elif [[ $fn_in =~ ${regex[disc]} ]]; then true; else echo "$fn_out"; fi; done
- ***
- Redump naming scheme:
- '(Rev 1)' seems to be the identical release to '(v1.1)'
- '(Rev 2)' seems to be the identical release to '(v1.2)'
- etc.
Advertisement