Skip to content

Instantly share code, notes, and snippets.

View evan's full-sized avatar

Evan Weaver evan

View GitHub Profile
@evan
evan / convert.sh
Created March 14, 2024 15:27
Convert .CHD to .BIN/.CUE in folders
#!/bin/bash
for chdfile in *.chd; do
if [[ -f "$chdfile" ]]; then
# Extract the base name without the .chd extension
base_name=$(basename "$chdfile" .chd)
# Create a directory for the .bin/.cue files
mkdir -p "$base_name"