Re: Re[2]: The date of a file

From: Harry Hoffman (hhoffman_at_ip-solutions.net)
Date: 02/16/04

  • Next message: Dick Roth: "Editting RH menus"
    To: redhat-list@redhat.com
    Date: Mon, 16 Feb 2004 17:05:03 -0500
    
    

    Ok,

    how about this:
    stat FILENAME |grep 'Modify:' |cut -f 2 -d " "

    Cheers,
    Harry

    Quoting Richard Kurth <rkurth@starband.net>:

    *>
    *>
    *> I know I can get a list of files with the date using ls -l I want to be
    *> able to ask what is the date of a certain file so I can use it in a
    *> script. I know I can do this ls -l filename but it will give me all of
    *> this
    *> -rw-r--r-- 1 admin root 23916 Feb 16 12:01 filename
    *>
    *> I just want the date of the file only
    *>

    -- 
    Harry Hoffman
    hhoffman@ip-solutions.net
    -------------------------------------------------
    This mail sent through IpSolutions: http://www.ip-solutions.net/
    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    

  • Next message: Dick Roth: "Editting RH menus"

    Relevant Pages

    • Re: someone help interpret log messages please
      ... Harry Hoffman ... # 1) Verbal output may occur before data processing is complete. ... This mail sent through IpSolutions: http://www.ip-solutions.net/ -- redhat-list mailing list unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe ...
      (RedHat)
    • Re: The date of a file
      ... Simple "ls -l filename" will give you the last date when the file was modified, ... but you can use "stat filename" to get access, modify and change date stamps, ... Chris ... -- redhat-list mailing list unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe ...
      (RedHat)
    • RE: Trouble with GRUB and multiple HDs
      ... > On Behalf Of Harry Hoffman ... > recognizable by the BIOS. ... no MBR there to boot to, if you know what I mean. ... -- redhat-list mailing list unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe ...
      (RedHat)