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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ok,

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

Cheers,
Harry


Quoting Richard Kurth <rkurth@xxxxxxxxxxxx>:

*> 
*> 
*> 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@xxxxxxxxxxxxxxxx

-------------------------------------------------
This mail sent through IpSolutions: http://www.ip-solutions.net/


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux