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]); [...]
|
||||||||
|
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]); [...] The easiest way is to use specialized package (like Date::Calc). #!/usr/bin/perl $year=$ARGV[ 0 ]; my ( $G , $C , $H, $I, $J , $L ); $G = $year % 19 ; |
||||||||
|
Copyright © 2010 MemoSoup - All Rights Reserved
|
||||||||