Find: formatting.

This commit is contained in:
Rico Sta. Cruz 2013-10-14 10:44:03 +08:00
parent 5b99d13372
commit 3c0a6a3c1f
1 changed files with 5 additions and 7 deletions

12
find.md
View File

@ -3,13 +3,11 @@ title: Find
layout: default
---
# Find
Usage:
### Usage
find <path> <conditions> <actions>
Conditions:
### Conditions
-name "*.c"
@ -28,18 +26,18 @@ Conditions:
-newerX file.txt # [c]hange, [m]odified, [B]create
-newerXt "1 hour ago" # [t]imestamp
Condition flow:
### Condition flow
\! -name "*.c"
\( x -or y \)
Actions:
### Actions
-exec rm {} \;
-print
-delete
Examples:
### Examples
find . -name '*.jpg'
find . -name '*.jpg' -exec rm {} \;