Date=`date +%d%m%y`
<do your awking here> | outputname.log.$Date
# The above will assign current date to the variable Date, you can call the variable anywhere in your script.
#the output will look like this outputname.log.103102
#(assumming you run it today). ^^^^^^^^^^^^^^^^^^^^^^^^^^
Experience is the Best Teacher
But its' cost is Heavy!
^^^^^^^^^^^^^^^^^^^^^^^^^^
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.