Search Results

Search: Posts Made By: Nate18
2,263
Posted By Nate18
How do you get the last modification date of a file?
I'm trying to get the date output to be in the form yyyy-mm-dd (e.g. 2013-01-18)
!/bin/sh
modDate=$(stat -c %y $1)
echo $modDate >> $1

When I run this on another file (by typing ./dateScript...
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 12:37 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy