Skip to content

Instantly share code, notes, and snippets.

@emoran
Created March 9, 2021 16:53
Show Gist options
  • Save emoran/794b13fce3f0c8d9eda84f76c4fba4c1 to your computer and use it in GitHub Desktop.
Save emoran/794b13fce3f0c8d9eda84f76c4fba4c1 to your computer and use it in GitHub Desktop.
Move multiple files on linux
for file in "/tmp"/file*; do
sudo mv -- "$file" "/tmp/todelete";
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment