new newest files function (excl. vcs and cache entries)

master
Sebastian Tramp 2011-08-15 09:30:03 +02:00
parent 253d136ebf
commit 2d88d1fd2f
1 changed files with 3 additions and 2 deletions

View File

@ -53,8 +53,9 @@ etb() {
fi ;
}
# http://www.commandlinefu.com/commands/view/4792/a-function-to-find-the-newest-file-in-a-directory
newest () { find ${1:-\.} -type f |xargs ls -lrt ; }
# show newest files
# http://www.commandlinefu.com/commands/view/9015/find-the-most-recently-changed-files-recursively
newest () {find . -type f -printf '%TY-%Tm-%Td %TT %p\n' | grep -v cache | grep -v ".hg" | grep -v ".git" | sort -r | less }
# http://www.commandlinefu.com/commands/view/7294/backup-a-file-with-a-date-time-stamp
buf () {