Created
May 22, 2018 17:28
-
-
Save vpnwall-services/3316d2ee45d7b50b891e2ac8567af8a9 to your computer and use it in GitHub Desktop.
[Date in variable name] Append $date to filename #linux #script #basics
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 | |
today=`date '+%Y_%m_%d__%H_%M_%S'` | |
filename="/home/el/myfile/$today.ponies" | |
echo $filename |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment