#!/bin/bash # /usr/local/bin/pyrenamer (MagicMint) O0116 # pyRenamer wrapper for Nemo cmd="/usr/bin/pyrenamer" if [[ $# != 0 ]]; then #Remove "file://" from the 1st name dir=/`dirname "$1" | cut -d'/' -f4-` fi eval "$cmd" --root "$dir" #End of script