From: Alexey Voinov <voins@voins.program.ru>
To: mandrake-russian@linuxteam.iplabs.ru
Subject: [mdk-re] Re: [mdk-re] Re: [mdk-re] имя файла
Date: Wed Mar 21 22:01:10 2001
Message-ID: <20010321205802.A9769@voins.local> (raw)
In-Reply-To: <000d01c0b228$7efa6930$1680a8c0@tebuk.ru>; from vlm@tebuk.parma.ru on Wed, Mar 21, 2001 at 08:00:56PM +0300
Vladimir Motov wrote:
> > >Здравствуёте.
> > >Периодически создаются файлы exp.dmp, я их сжимаю gzip-ом, можно ли в
> > имени
> > >выходного файла для gzip иметь текущую дату в читабельном формате
> > >20000321.dmp.gz. И вообще для любой операции с файлами: cp, mv получать
> > такое
> > >имя.
> > конечно. - что-нибудь типа fname=`date +'mx-cart-%m.%d-%H.%M.tgz'`
> > а вообще, man date
> Спасибо.
> Как бы это ещё в команду вставить.
> Типа gzip exp.dmp fname=`date +'mx-cart-%m.%d-%H.%M.tgz'`
я бы сказал
gzip -c < exp.dmp > `date +'%Y%m%d'.dmp.gz` && rm exp.dmp
--
Best Regards!
Alexey Voinov
voins@voins.program.ru
voins@caravan.ru
voins@online.ru
next prev parent reply other threads:[~2001-03-21 22:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-03-21 18:49 denf
2001-03-21 19:55 ` [mdk-re] " Vladimir Motov
2001-03-21 22:01 ` Alexey Voinov [this message]
2001-03-21 22:30 ` Vladimir Motov
2001-03-22 1:24 ` Mikhail Zabaluev
2001-03-22 10:08 ` Vladimir Motov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20010321205802.A9769@voins.local \
--to=voins@voins.program.ru \
--cc=mandrake-russian@linuxteam.iplabs.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git