Martin Bishoptoomanysecrets@mastodon.social
Aug 25, 2026, 9:56 AM@lemgandi Why spawn a subshell and tr when Bash parameter expansion does it natively? 😉
NEWFILENAME="${INFILE// /_}"
(And remember to quote ${NEWFILENAME} in that mv before ShellCheck gets upset!)