blob: b2484954de0a4432dcd9cb5dc7e60c6023577ab9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# The find Unix utility
## Ignoring directories
find . -not -ipath "dir/*"
## 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
|