
tech55i.com
Tech55i.comBlog tech55i - John Galbraith A byte into Information Security. Subscribe to RSS Feed. Add to My Yahoo. How to get the date into a variable with BASH. Posted by john at 23:29:20. Simple one. First do a man date and look at all the different ways you can format the date. For this exercise, we want the date in a YYYY-MM-DD format. MyDate=$(date %Y-%m-%d) echo $myDate 2015-08-12. That is all there is to it. Do you want to offset the day to yesterday? Easy, check this out. How to read a file in BASH. For the...
http://www.tech55i.com/
SOCIAL ENGAGEMENT