I'm trying to to execute a script, which uses the command rename
.
When I execute it, I get a message rename: command not found
. Any ideas?
if [[ -z '$3' ]]; then
shopt -s dotglob
rename "$EXPRESSION" ./*
else
rename "$EXPRESSION" "$3"
fi
rename
isn't an installed function anywhere. Or it's not configured in your script properly. As-is, that script doesn't define a functoin called "rename". Further,rename
can be a perl package extension forFile::Rename
and provides a 'newer' interface / command line tool forrename
functionssudo apt install rename
before running the script?