aboutsummaryrefslogtreecommitdiff
path: root/cheat/.cheat/find
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2019-04-26 11:34:19 +0200
committerneodarz <neodarz@neodarz.net>2019-04-26 11:34:19 +0200
commit469e62e70891a37ec4016fcd025f979859074ef7 (patch)
tree690faf01abd10b7d6721d4e46b5dcbfd0727efb3 /cheat/.cheat/find
parent537e727f43311bc30d93c9af645dde3450605129 (diff)
downloaddotfiles_ascii-469e62e70891a37ec4016fcd025f979859074ef7.tar.xz
dotfiles_ascii-469e62e70891a37ec4016fcd025f979859074ef7.zip
Add moooore cheat
Diffstat (limited to 'cheat/.cheat/find')
-rw-r--r--cheat/.cheat/find4
1 files changed, 2 insertions, 2 deletions
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