Created
November 15, 2018 00:07
-
-
Save jimkang/fb2bead9804431493be47db8caee87af to your computer and use it in GitHub Desktop.
Move files (unsafely) with a file extension that matches the argument into a directory named for that extension.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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