Skip to content

Rename file #2143

Answered by twpayne
agingorange asked this question in Q&A
Jun 17, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

As renaming a file can only happen once, I'd suggest an idempotent run script, something like run_rename.sh:

#!/bin/sh

if [ -e $OLDNAME ] ; then
    mv $OLDNAME $NEWNAME
fi

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@agingorange
Comment options

Answer selected by agingorange
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants