Re: [Evolution] OT - But could do with some help



On Thu, 2003-07-17 at 07:10, D. D. Brierton wrote:

$ date=`eval date +%d-%B-%Y`; cp filename filename-$date

There's no need for the intermediate "$date" variable:

    cp filename filename-`date +%Y-%m-%d`

NOTE: the quotes are backquotes (a.k.a. "grave accent")

-- 
Richard Bellavance                   CGI
Analyste-Programmeur Principal
T.: 514-415-3000 #5463               1350, boul. René-Lévesque Ouest
F.: 514-415-3972                     Montréal, Qc, H3G 1T4, CANADA




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