Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] Setting Date Variable for Cron Job



Charles Muller wrote:
> cp -f /home/chuck/.emacs
/home/chuck/Documents/programming/emacs-`date+"%Y%m%d"`.txt
> 
> But it the "%Y%m%d" does not convert into a date.

It should work once you add a space between 'date' and '+"%Y%m%d"'.
Very few things look like a word separator to a Unix shell, and the
plus sign isn't one of them.

Shimpei.
PS Speaking of separators, please remember to use the "Enter" key
after each line next time.



Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links