Find: formatting.
This commit is contained in:
parent
5b99d13372
commit
3c0a6a3c1f
12
find.md
12
find.md
|
@ -3,13 +3,11 @@ title: Find
|
||||||
layout: default
|
layout: default
|
||||||
---
|
---
|
||||||
|
|
||||||
# Find
|
### Usage
|
||||||
|
|
||||||
Usage:
|
|
||||||
|
|
||||||
find <path> <conditions> <actions>
|
find <path> <conditions> <actions>
|
||||||
|
|
||||||
Conditions:
|
### Conditions
|
||||||
|
|
||||||
-name "*.c"
|
-name "*.c"
|
||||||
|
|
||||||
|
@ -28,18 +26,18 @@ Conditions:
|
||||||
-newerX file.txt # [c]hange, [m]odified, [B]create
|
-newerX file.txt # [c]hange, [m]odified, [B]create
|
||||||
-newerXt "1 hour ago" # [t]imestamp
|
-newerXt "1 hour ago" # [t]imestamp
|
||||||
|
|
||||||
Condition flow:
|
### Condition flow
|
||||||
|
|
||||||
\! -name "*.c"
|
\! -name "*.c"
|
||||||
\( x -or y \)
|
\( x -or y \)
|
||||||
|
|
||||||
Actions:
|
### Actions
|
||||||
|
|
||||||
-exec rm {} \;
|
-exec rm {} \;
|
||||||
-print
|
-print
|
||||||
-delete
|
-delete
|
||||||
|
|
||||||
Examples:
|
### Examples
|
||||||
|
|
||||||
find . -name '*.jpg'
|
find . -name '*.jpg'
|
||||||
find . -name '*.jpg' -exec rm {} \;
|
find . -name '*.jpg' -exec rm {} \;
|
||||||
|
|
Loading…
Reference in New Issue