Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
hawski
on Jan 8, 2019
|
parent
|
context
|
favorite
| on:
Bash 5.0 released
Wouldn't "cat $today" result with "cat: No such file or directory: 2019-01-08"? Did you mean echo instead of cat?
flukus
on Jan 8, 2019
|
next
[–]
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.
forty
on Jan 8, 2019
|
prev
[–]
Only in the case when no such file exists in the current directory :)
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: