La date dans un nom de fichier Unix

Elementaire mon cher Watson : The UNIX Forums - how to give current date in file name?.

Soit par exemple :

lwp-rget "http://www.google.com" > google_`date '+%Y%m%d'`.html

pour obternir le fichier google_20060430.html aujourd’hui :-).

Leave a Reply