« Oracle: text of the running SQL queries | Home | PHP imagefilter without GD »
Unix: get the file date
ls -1 | cpio -o | cpio -ivt | awk '{print $NF, $(NF-1), $(NF-4), $(NF-3) }'
Warning: I/O expensive for the large files!
Perl:
@a = localtime((stat($my_file))[9]); $a[4]++;
printf "%02d%02d%02d",@a[5,4,3];
printf "%02d%02d%02d",@a[5,4,3];
Topics: Unix Shell, date, output | Submitter: checkthis
Comments
You must be logged in to post a comment.