Commit Graph

24 Commits (1bee28dd6572c855d7cdb2ffd88e05794a8cfc86)

Author SHA1 Message Date
kongmoumou d5c3d824c5
find: always enclose the pattern in quotes (#3983)
As mentioned in man page, should always enclose the pattern in quotes in order to protect it from expansion by the shell.
2020-04-15 17:51:26 +01:00
Waldir Pimenta 261abcdd90 find: various improvements (#3124)
* find: various improvements

The information content of the page should be unchanged, but hopefully it's now easier to read
(and respects our length recommendations of 8 maximum examples).

The changes include:
- Make the `-mtime` example more intuitive, so it only needs to be shown once,
  and combine the `-delete` option with the first (now only) `-mtime` example
  (thus reducing the page size back to 8 examples)
- Fix a comma splice in the `-exec` example, and a missing "a" in the `-path` example
- Reorder the examples to provide a more consistent and intuitive sequence
  (e.g. by introducing `-iname` in an earlier example, and moving the `-exec` command down)

* clarify -size example description
2019-06-23 23:43:25 -03:00
Alexander Berezovsky 3a97f27dbe find: add searching multiple patterns simultaneously (#2589) 2018-11-15 21:33:41 +00:00
Surkal 032dd82ce1 fix argument 2018-10-07 09:49:11 +05:30
Agniva De Sarker b16fa9f0fa find: reoder example 2018-08-27 13:40:39 +05:30
Rodrigo Orem d3d91a5804 find: remove the -or conditional entry
Due to the limit of 8 entries, we need to remove one entry to add the search by directory name. The -or conditional example is probably less useful, so it's being removed.
2018-08-27 13:40:39 +05:30
Rodrigo Orem 8ef91a1e71 find: add directory search 2018-08-27 13:40:39 +05:30
Agniva De Sarker 1e8f60f7cd find: add unit for mtime
Clarifying that mtime stands for no. of days
2017-12-31 01:13:15 +05:30
Tan Shuai abaabe35ca find: fix -mtime example (#1625) 2017-11-08 19:39:07 +00:00
Eric Nielsen b0b440436f find: improve -mtime example
Make the description clearer and more specific to the given `-1`
parameter.
Remove unnecessary `-name '{{}}'` from example.
2017-10-05 16:23:30 -05:00
Waldir Pimenta cd38a006d8 find: slightly reword the -not -path example 2017-04-25 22:50:51 +01:00
Xiang Wang 4626735021 find: ignore given directory (#1289)
* find path while excluding certain directory

* delete the `find {{root_path}} -empty` command to meet the demand of 8 commands at most

* tokenize the demo parameter
2017-03-10 09:48:29 -05:00
Alfred Bez cd29c9775f mtime argument (find command) expect numeric value 2017-03-10 10:13:34 +05:30
Waldir Pimenta 63659bed37 find: quotes outside tokens; generic extension (#1160)
The generic extension is to conform to our contribution guidelines:
https://github.com/tldr-pages/tldr/blob/master/CONTRIBUTING.md#token-syntax
2016-11-26 15:51:12 +00:00
Cornelius Mika e019c18cdd Fix argument quoting 2016-02-24 10:27:51 +01:00
Ruben Vereecken 0ba869a5fc Formatted find page 2016-01-21 13:12:53 +01:00
Ruben Vereecken 38068377be Merge branch 'find' of git://github.com/Cvetomird91/tldr into Cvetomird91-find 2016-01-21 13:12:28 +01:00
Ruben Vereecken 066582e8ea Formatted all pages according to guidelines. 2016-01-08 09:38:59 +01:00
Cvetomird91 f3e3035de7 find: added options for multiple search criteria and empty files
added path for -empty option
2015-12-31 12:20:17 +02:00
Eliot Sykes 2038fc0f13 find -path option 2015-12-28 18:06:08 +00:00
Bo-Yi Wu ed380d1a67 Update find.md 2015-12-28 17:43:58 +08:00
Bo-Yi Wu c97b729924 remove unnecessary example. 2015-12-28 13:28:26 +08:00
Rajiv Nair c92cd2281e Add find -delete 2015-12-27 23:32:02 +05:30
rprieto f00bf64426 Move pages back into a "pages" folder 2014-03-04 23:28:29 +11:00