Skip to content

Instantly share code, notes, and snippets.

@vpnwall-services
Created May 22, 2018 17:28
Show Gist options
  • Save vpnwall-services/3316d2ee45d7b50b891e2ac8567af8a9 to your computer and use it in GitHub Desktop.
Save vpnwall-services/3316d2ee45d7b50b891e2ac8567af8a9 to your computer and use it in GitHub Desktop.
[Date in variable name] Append $date to filename #linux #script #basics
#!/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