Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Move files (unsafely) with a file extension that matches the argument into a directory named for that extension.
#!/bin/bash
for file in ./recup_dir*/*.$1
do
mv ${file} $1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.