Skip to content

Instantly share code, notes, and snippets.

@ety001
Created December 19, 2021 16:54
Show Gist options
  • Save ety001/4c01e0fe66bec49e1628eab21cc8ef76 to your computer and use it in GitHub Desktop.
Save ety001/4c01e0fe66bec49e1628eab21cc8ef76 to your computer and use it in GitHub Desktop.
convert raw to jpg
#!/bin/bash
set -xe
files=`ls | grep CR2`
for name in $files
do
IFS='.' read -ra fn <<< "$name"
convert $name output/${fn[0]}.jpg
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment