Skip to content

Instantly share code, notes, and snippets.

@steezeburger
Last active June 6, 2022 16:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steezeburger/e363a293d732a824544624953f76a356 to your computer and use it in GitHub Desktop.
Save steezeburger/e363a293d732a824544624953f76a356 to your computer and use it in GitHub Desktop.
# for loop to rename files with `mv`. uses `basename` to get filename stripped of path and suffix.
for f in *.csv.bu; do mv $f `basename $f .csv.bu`.csv; done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment