Skip to content

Commit b0da9dd

Browse files
committed
update docs with the new simple syntax #75
1 parent 24241c9 commit b0da9dd

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

README.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -216,14 +216,17 @@ Shortcuts to common file extensions:
216216
fselect path from /home/user where is_archive = true
217217
fselect path, mime from /home/user where is_audio = 1
218218
fselect path, mime from /home/user where is_book != false
219-
fselect path from /home/user where is_doc != 1
220-
fselect path from /home/user where is_image = false
221-
fselect path from /home/user where is_video != true
219+
220+
Even simpler way of using boolean columns:
221+
222+
fselect path from /home/user where is_doc
223+
fselect path from /home/user where is_image
224+
fselect path from /home/user where is_video
222225

223226
Find files with dangerous permissions:
224227

225-
fselect mode, path from /home/user where other_write = true or other_exec = true
226-
fselect mode, path from /home/user where other_all = true
228+
fselect mode, path from /home/user where other_write or other_exec
229+
fselect mode, path from /home/user where other_all
227230

228231
Simple glob-like expressions or even regular expressions on file mode are possible:
229232

@@ -240,9 +243,9 @@ Or by owner's or group's name:
240243

241244
Find special files:
242245

243-
fselect name from /usr/bin where suid = true
244-
fselect path from /tmp where is_pipe = true
245-
fselect path from /tmp where is_socket = 1
246+
fselect name from /usr/bin where suid
247+
fselect path from /tmp where is_pipe
248+
fselect path from /tmp where is_socket
246249

247250
Find files with xattrs, check if particular xattr exists, or get its value:
248251

docs/usage.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ If you are on Windows, feel free to omit most of the quotes.
4545

4646
Commas for column separation aren't needed as well. Column aliasing (with or without `as` keyword) is not supported.
4747

48+
`where` section can contain short syntax conditions for boolean columns (like `is_audio` or `other_write`).
49+
4850
`into` keyword specifies output format, not output table.
4951

5052
Joins, unions, and subselects are not supported (yet?).

0 commit comments

Comments
 (0)