Created
August 26, 2016 15:14
-
-
Save gmunoz/d72cf2300709a7f50f2416629d91ecdc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
perl -nE ' | |
$_{$_} = -M; # store file age (mtime - now) | |
END { | |
$, = "\n"; | |
@sorted = sort {$_{$a} <=> $_{$b}} keys %_; # sort by increasing age | |
print @sorted[0..9]; | |
}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment