Search for both CR2 and CR3 formats

master
Emil Miler 4 years ago
parent 58fbd42982
commit dbfb82761f

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
# get total number of files # get total number of files
N=`ls -1 *.CR2 2>/dev/null | wc -l` N=`ls -1 *.CR[23] 2>/dev/null | wc -l`
if [ $N != 0 ]; then if [ $N != 0 ]; then
# mkdir # mkdir
@ -12,7 +12,7 @@ if [ $N != 0 ]; then
# move files # move files
echo "Moving $N files." echo "Moving $N files."
mv *.CR2 raw/ mv *.CR[23] raw/
else else
echo "No files found." echo "No files found."
fi fi

Loading…
Cancel
Save