Re:Bash 5.0 released
by hawski on Tuesday January 08, 2019 @04:01AM
(#18854264)
Wouldn't "cat $today" result with "cat: No such file or directory: 2019-01-08"? Did you mean echo instead of cat?
[ Parent
| on HN ]
My real life use case for these dynamic variables would be more like "cat/vim/cp $log" to get today's log file which would expand to something like /somedir/logs/201901/09/product.log. Handy when you have a large matrix of products/environments.