Created
January 28, 2016 15:17
-
-
Save alex-moreno/2f4d1e0dfc856658faec to your computer and use it in GitHub Desktop.
Get the newest file of those in the current folder
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
DB_BACKUP_PATH="$(pwd)/$(ls -t | grep \.sql\.gz$ | head -n1)" | |
echo $DB_BACKUP_PATH |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment