I would like to use MC (midnight commander) to compress the selected dir with date in its name, e.g:
dirname_20131231.tar.gz
The command in the User menu is :
tar -czf dirname_`date '+%Y%m%d'`.tar.gz %d
The archive is missing because %m
, and %d
has another meaning in MC.
I made an alias for the date, but it also doesn't work.
Does anybody solved this problem ever?