#Installation brew install imagemagick brew install ghostscript brew install ufraw netpbm dcraw #Convert all .NET files to .JPG for img in *.NEF; do convert "$img" "$img.jpg"; done source: http://superuser.com/a/577661