Skip to content

Instantly share code, notes, and snippets.

@jadia
Created May 27, 2020 15:51
Show Gist options
  • Save jadia/157209096df9103d899b9276733e6dae to your computer and use it in GitHub Desktop.
Save jadia/157209096df9103d899b9276733e6dae to your computer and use it in GitHub Desktop.
Add suffix to file names

Add .zip suffix to all files starting with name test

bash -c "ls test* | xargs -I {} mv {} {}.zip"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment