Skip to content

Instantly share code, notes, and snippets.

@jashezan
Last active November 16, 2022 19:34
Show Gist options
  • Save jashezan/7688df681c526ffc5e6094f3783f10f4 to your computer and use it in GitHub Desktop.
Save jashezan/7688df681c526ffc5e6094f3783f10f4 to your computer and use it in GitHub Desktop.
Adding suffix to file in linux

Adding suffix to file in linux

# adding_suffix_to_file.sh
# suppose the file have `ext` extension
mv "$file" "${file%.*}_suffix.ext"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment