new newest files function (excl. vcs and cache entries)
This commit is contained in:
parent
253d136ebf
commit
2d88d1fd2f
1 changed files with 3 additions and 2 deletions
|
@ -53,8 +53,9 @@ etb() {
|
||||||
fi ;
|
fi ;
|
||||||
}
|
}
|
||||||
|
|
||||||
# http://www.commandlinefu.com/commands/view/4792/a-function-to-find-the-newest-file-in-a-directory
|
# show newest files
|
||||||
newest () { find ${1:-\.} -type f |xargs ls -lrt ; }
|
# 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
|
# http://www.commandlinefu.com/commands/view/7294/backup-a-file-with-a-date-time-stamp
|
||||||
buf () {
|
buf () {
|
||||||
|
|
Loading…
Add table
Reference in a new issue