I'm trying to to execute a script, which uses the command
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
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
My Ubuntu has a man page for
rename(1) on fresh install, but running
rename gives a CNF error.
The man page style suggests that the command belongs to GNU Core Utilities, but confusingly it actually is
rename.ul (Ubuntu Bionic / Disco / Eoan + Debian Buster). This command corresponds to the mysterious
If you install
rename package, the new man page is
rename(1p). It's a Perl script, not coreutils.