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 | |
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" |
OlderNewer