# Create .CHD From .GDI Files

## Windows

## Linux

[convertFromGdiToChd.sh](https://wikipedia.mutschlerhome.com/attachments/226)

```bash
#!/bin/bash

# Grab .gdi file
for f in ./**/*.gdi
do
	name=${f%.gdi} # Remove '.gdi' from file name
	chdman createcd -i "$name.gdi" -o "$name.chd" --force
done

```