From 469e62e70891a37ec4016fcd025f979859074ef7 Mon Sep 17 00:00:00 2001 From: neodarz Date: Fri, 26 Apr 2019 11:34:19 +0200 Subject: Add moooore cheat --- cheat/.cheat/find | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cheat/.cheat/find') diff --git a/cheat/.cheat/find b/cheat/.cheat/find index 680abb3..aecacbd 100644 --- a/cheat/.cheat/find +++ b/cheat/.cheat/find @@ -46,5 +46,5 @@ find . -type f -samefile MY_FILE_HERE 2>/dev/null # To find all files in the current directory and modify their permissions find . -type f -exec chmod 644 {} \; -# Find last edited files -find $1 -type f \( \! -iname ".DS_Store" \) -print0 | xargs -0 stat --format '%Y :%y %n' | sort -nr | cut -d: -f2- | head +# Find last edited files and ignore .DS_Store file and #recycle path (fuck mac) +find . -type f -not \( -iname ".DS_Store" -o -path "*#recycle*" \) -print0 | xargs -0 stat --format '%Y :%y %n' | sort -nr | cut -d: -f2- | head -- cgit v1.2.1