mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-09 19:33:49 +02:00
Merge pull request #402 from appleboy/patch-1
fix `find` markdown format.
This commit is contained in:
commit
f782692339
1 changed files with 2 additions and 4 deletions
|
@ -6,11 +6,9 @@
|
||||||
|
|
||||||
`find {{root_path}} -name {{'*.py'}}`
|
`find {{root_path}} -name {{'*.py'}}`
|
||||||
|
|
||||||
- run a command for each file
|
- run a command for each file, use {} within the command to access the filename
|
||||||
- use {} within the command to access the filename
|
|
||||||
|
|
||||||
`find {{root_path}} -name {{'*.py'}} -exec {{wc -l {} }}\;`
|
`find {{root_path}} -name {{'*.py'}} -exec {{wc -l {} }}\;`
|
||||||
`find {{root_path}} -name {{'*.py'}} -exec {{rm {} }}\;`
|
|
||||||
|
|
||||||
- find files modified since a certain time
|
- find files modified since a certain time
|
||||||
|
|
||||||
|
@ -22,4 +20,4 @@
|
||||||
|
|
||||||
- delete files by name, older than a certain number of days
|
- delete files by name, older than a certain number of days
|
||||||
|
|
||||||
`find {{root_path}} -name {{'*.py'}} -mtime {{-180d}} -delete`
|
`find {{root_path}} -name {{'*.py'}} -mtime {{-180d}} -delete`
|
||||||
|
|
Loading…
Add table
Reference in a new issue