lastaccess DIRNAME DIRNAMEの下にあるファイルで、最後にアクセスされた順にファイルを表示する。 オプション: -d 0 ; 途中で現れるディレクトリに対する処理を抑制する。 -g N : 最大最近の何個を取り出すかの指定。未指定なら12。 -x STR : DIRNAME の指定 -, 0 : 3桁区切りのコンマを抑制する。 開発メモ : * ソートを行っているので、数十万個を超えるファイルがその下の階層のどこかにある場合は計算リソースが気になる。工夫が必要。 * 各ファイルのパスの文字列をそのままメモリ上に載せているので、パス名ではないただのファイル名で十分なはずを、何倍も無駄をしている。改良したい。
To install Bin::File::Time, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bin::File::Time
CPAN shell
perl -MCPAN -e shell install Bin::File::Time
For more information on module installation, please visit the detailed CPAN module installation guide.