diff options
-rw-r--r-- | awk.md | 2 | ||||
-rw-r--r-- | find.md | 16 |
2 files changed, 18 insertions, 0 deletions
@@ -12,3 +12,5 @@ Program is ;-separated pattern-action statements. `$0` is whole line, `$1`, `$2`, ... are fields separated by `FS` (by default, whitespace). + +Set `FS` with `-F <sepstring>` @@ -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 |