Skip to content

Commit

Permalink
chore: fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
ccoVeille committed Jun 11, 2024
1 parent 6317d24 commit 3338293
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@

# zfind

zfind allows you to search for files, including inside `tar`, `zip`, `7z` and `rar` archives. It makes finding files easy with a filter syntax that is similar to an SQL-WHERE clause. This means, if you know SQL, you don't have to learn or remember any new syntax just for this tool.
`zfind` allows you to search for files, including inside `tar`, `zip`, `7z` and `rar` archives. It makes finding files easy with a filter syntax that is similar to an SQL-WHERE clause. This means, if you know SQL, you don't have to learn or remember any new syntax just for this tool.

## Basic Usage

```
```shell
zfind <where> [<path>...]
```

Examples

```
```console
# find files smaller than 10KB, in the current path
zfind 'size<10k'

Expand Down Expand Up @@ -41,7 +41,7 @@ zfind --csv

- `AND`, `OR` and `()` parentheses are logical operators used to combine multiple conditions. `AND` means that both conditions must be true for a row to be included in the results. `OR` means that if either condition is true, the row will be included. Parentheses are used to group conditions, just like in mathematics.

Example: `'(size > 20M OR name = "temp") AND type="file"'` selects all files that are either greater than 20MB in size or are named temp.
Example: `'(size > 20M OR name = "temp") AND type="file"'` selects all files that are either greater than 20 MB in size or are named temp.

- Operators `=`, `<>`, `!=`, `<`, `>`, `<=`, `>=` are comparison operators used to compare values and file properties. The types must match, meaning don't compare a date to a file size.

Expand Down Expand Up @@ -86,8 +86,8 @@ The following file properties are available:
| size | file size (uncompressed) |
| date | modified date in YYYY-MM-DD format |
| time | modified time in HH-MM-SS format |
| ext | short file extension (e.g. `txt`) |
| ext2 | long file extension (two parts, e.g. `tar.gz`) |
| ext | short file extension (e.g., `txt`) |
| ext2 | long file extension (two parts, e.g., `tar.gz`) |
| type | `file`, `dir`, or `link` |
| archive | archive type: `tar`, `zip`, `7z`, `rar` or empty |

Expand All @@ -112,11 +112,11 @@ Helper properties

`zfind` does not implement actions like `find`, instead use `xargs -0` to execute commands:

```
```shell
zfind 'name like "%.txt" and not archive' -0 | xargs -0 -L1 echo
```

zfind can also produce `--csv` that can be piped to other commands.
`zfind` can also produce `--csv` that can be piped to other commands.


## Configuration
Expand All @@ -126,7 +126,7 @@ Set the environment variable `NO_COLOR` to disable color output.

## Installation

zfind is built for a number of platforms by GitHub actions.
`zfind` is built for a number of platforms by GitHub actions.

Download a binary from [releases](https://github.com/laktak/zfind/releases) and place it in your `PATH`.

Expand All @@ -140,7 +140,7 @@ brew install zfind

### Arch Linux

zfind is available in the AUR as [zfind](https://aur.archlinux.org/packages/zfind/):
`zfind` is available in the AUR as [zfind](https://aur.archlinux.org/packages/zfind/):

```
paru -S zfind
Expand Down

0 comments on commit 3338293

Please sign in to comment.