Last active
December 6, 2019 13:47
-
-
Save fcamblor/9b29df5d0aa19c7473b489a074920d65 to your computer and use it in GitHub Desktop.
mv / cp latest download in target dir
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 | |
function cpLatestDlTo(){ cp "$HOME/Downloads/$(ls -t ~/Downloads | head -n 1)" "$1" } | |
function mvLatestDlTo(){ mv "$HOME/Downloads/$(ls -t ~/Downloads | head -n 1)" "$1" } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment