Skip to content

Instantly share code, notes, and snippets.

@neutraltone
Last active June 1, 2023 13:42
Show Gist options
  • Save neutraltone/2a6052720d35218216b4dcf2164070ad to your computer and use it in GitHub Desktop.
Save neutraltone/2a6052720d35218216b4dcf2164070ad to your computer and use it in GitHub Desktop.
chdman bash script

This script will allow you process a directory full of subdirectories with your uncompressed cue, gdi, iso, etc files and output the compressed chd in the same directory.

find . -name '*.cue' -print0 | while IFS='' read -r -d '' file; do
  exfile="$(echo $file | sed -E 's/\.[A-z]+$//')"
  chdman createcd -i "${file}" -o "${exfile}.chd"; 
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment