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

Re: bash: get file modification time query



Vineet Kumar wrote:

* David selby (debian@pusspaws.net) [030709 12:08]:
Is there a neater way to get a modification date for a file without ls -l & sed ? I have a bash script that needs to get the info. Because the file size varies I cannot use cut, it may cut the wrong bit.

stat -c "%y" $filename

good times,
Vineet
Many thanks
Dave



Reply to: