Fish ScriptsBackReference: https://fishshell.com/docs/current/cmds/string.html?highlight=variable%20substitution (opens in a new tab) Renaming files in current directory for x in *.js mv $x (string replace js mjs $x) end