Last active
September 14, 2020 19:50
-
-
Save encima/361578df7700d2088d2f to your computer and use it in GitHub Desktop.
Find files based on modified time and move to a directory|-|{"files":{"find_n_move.sh":{"env":"plain"}},"tag":"Shell"}
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 | |
# 1- file 2- minutes 3- dir | |
find $1 -mmin $2 -exec mv -t $3 {} \+ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment