m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/find.md
diff options
context:
space:
mode:
Diffstat (limited to 'find.md')
-rw-r--r--find.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/find.md b/find.md
index f69f25c..b248495 100644
--- a/find.md
+++ b/find.md
@@ -7,3 +7,19 @@
## Regex match
find . -regex pattern # matches whole path
+
+## Formatted printing
+
+ -printf <format>
+
+Action that, instead of just printing the filename of found files, prints a
+formatted string for each.
+
+### Directives
+
+* Time related:
+ * `%A`: access time
+ * `%C`: status change time
+ * `%T`: modification time
+ Each should be followed by a time format specifier, @ gets fractions UNIX time
+* `%p`: filename