Re: Re[2]: The date of a file
From: Harry Hoffman (hhoffman_at_ip-solutions.net)
Date: 02/16/04
- Previous message: Richard Ottinger: "RE: Re[2]: The date of a file"
- In reply to: Richard Kurth: "Re[2]: The date of a file"
- Next in thread: Ken Rossman: "Re: The date of a file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: Richard Ottinger: "RE: Re[2]: The date of a file"
- In reply to: Richard Kurth: "Re[2]: The date of a file"
- Next in thread: Ken Rossman: "Re: The date of a file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|