jestrada101
Technical User
- Mar 28, 2003
- 332
Is there a unix command that will give me the date/time of a file? Or is a script needed that utilizes "ls" to manipulate an output..
Thanks
je
Thanks
je
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
#!/usr/bin/perl
if ($#ARGV < 0) {
print "usage: filedate.pl <filespec>\n";
} else {
print localtime((stat($ARGV[0]))[9]) . "\n";
}