Linux Debian support - Re: mkdir with dynamique names, many thanks

This is Interesting: Free IT Magazines  
Home > Archive > Linux Debian support > October 2005 > Re: mkdir with dynamique names, many thanks





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: mkdir with dynamique names, many thanks
John Smith

2005-10-24, 9:42 am

Many thanks, Gregor, for your answer.
It works fine with

mkdir backup-`date --iso-8601`



best regards,
cu.








gregor herrmann wrote:
> On Sat, 22 Oct 2005 10:38:55 +0200, John Smith wrote:
>
>
>
>
> $ date +"%d--%m--%y"
> gives you current date in your desired format, and the complete
> command would be:
> $ mkdir backup-`date +"%d--%m--%y"`
> or
> $ mkdir backup-$(date +"%d--%m--%y")
> (depending on the shell)
>
> BTW: I'd suggest to use the ISO date format. i.e. "date --iso-8601" ->
> $ mkdir backup-`date --iso-8601`
>
> gregor

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com