ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: php-coder <php-coder@ngs.ru>
To: community@altlinux.ru
Subject: Re: [Comm] date & time of file modification in shell
Date: Fri, 8 Apr 2005 11:01:05 +0700
Message-ID: <20050408040105.GA4457@mycomp.mydomain> (raw)
In-Reply-To: <20050406191544.GA16744@basalt.office.altlinux.org>


--- Dmitry V. Levin 2005-04-06 23:15:44 +0400
+++ php-coder 2005-04-08 10:55:54 +0700

> > > > Подскажите, пожалуйста, как можно в shell-сценарии определить
> > > >дату и время модификации какого-то конкретного файла?
> > >        stat - display file or filesystem status
> > Спасибо! Жаль только, что там нельзя, на сколько я понял, регулировать
> > формат выдачи.
> Для этого есть find -printf.

    Либо я чего-то не понимаю, либо автор ман не читал %)

    man stat

    -c  --format=FORMAT
           use the specified FORMAT instead of the default
    ...
    %Y     Time of last modification as seconds since Epoch
    %y     Time of last modification

    Хм... попробуем проверить...

    [c0der@mycomp ~]$ stat -c %y .mutt/mail/community    10:59
    2005-04-08 10:47:35.000000000 +0700

-- 
+ php-coder
+ php-coder[at]ngs[dot]ru
+ ALTLinux Master 2.4 (kernel 2.4.26-std-up-alt10)



  reply	other threads:[~2005-04-08  4:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-06  9:53 Denis G. Samsonenko
2005-04-06  9:01 ` Mike Lykov
2005-04-06 12:50   ` Denis G. Samsonenko
2005-04-06 19:15     ` Dmitry V. Levin
2005-04-08  4:01       ` php-coder [this message]
2005-04-08  9:20         ` Denis G. Samsonenko
2005-04-08 12:00           ` php-coder
2005-04-08 13:02             ` php-coder

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=20050408040105.GA4457@mycomp.mydomain \
    --to=php-coder@ngs.ru \
    --cc=community@altlinux.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