Rename file #2143
Answered
by
twpayne
agingorange
asked this question in
Q&A
Rename file
#2143
-
What is the "chezmoi way" of renaming a file? |
Beta Was this translation helpful? Give feedback.
Answered by
twpayne
Jun 17, 2022
Replies: 1 comment 1 reply
-
As renaming a file can only happen once, I'd suggest an idempotent run script, something like #!/bin/sh
if [ -e $OLDNAME ] ; then
mv $OLDNAME $NEWNAME
fi |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
agingorange
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As renaming a file can only happen once, I'd suggest an idempotent run script, something like
run_rename.sh
: