github.com/nicolai86/fshelpers

tiny golang organizational helpers


License
MIT
Install
go get github.com/nicolai86/fshelpers

Documentation

utils

a random bunch of binaries written to help me organize my files.

nef to jpeg

apt-get install ufraw gimp-ufraw 
for file in $files; do 
  img=$(echo $file | sed 's/.NEF/.jpg/g')  
  dir=$(dirname $file)

  if [[ -e $img ]]; then 
    rm $file
    echo "exists"
  else 
    ufraw-batch --out-type=jpeg --out-path=$dir $file
    if [[ -e $img ]]; then
      rm $file
      echo removed $file
    fi
  fi
done