Link to home
Start Free TrialLog in
Avatar of projects
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
Avatar of Steven Vona
Steven Vona
Flag of United States of America image

[savona@bighat ~]$ date +%b-%d-%Y
Nov-11-2015
ASKER CERTIFIED SOLUTION
Avatar of Steven Vona
Steven Vona
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of projects
projects

ASKER

Funny that I could not find this but your quick solution got me working again.

Thanks.