projects
asked on
linux bash date output
# date
Wed Nov 11 08:17:40 MST 2015
How could I get the following output;
'nov-11-2015' (no time needed)
The reason for this is...
Currently, I move files like this;
mv backed-db.gz backed-db-`date +"%Y%m%d"`.gz
and get;
backed-db-20151111.tar
But the result I need should be;
backed-db-nov-22-2015.gz
Wed Nov 11 08:17:40 MST 2015
How could I get the following output;
'nov-11-2015' (no time needed)
The reason for this is...
Currently, I move files like this;
mv backed-db.gz backed-db-`date +"%Y%m%d"`.gz
and get;
backed-db-20151111.tar
But the result I need should be;
backed-db-nov-22-2015.gz
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Funny that I could not find this but your quick solution got me working again.
Thanks.
Thanks.
Nov-11-2015