LINUX.ORG.RU

Rawhide — утилита поиска файлов с Си-подобным синтаксисом выражений

 , , , ,


1

1

https://github.com/raforg/rawhide

Rawhide (rh) lets you search for files on the command line using expressions and user-defined functions in a mini-language inspired by C. It’s like find(1), but more fun to use. Search criteria can be very readable and self-explanatory and/or very concise and typeable, and you can create your own lexicon of search terms. The output can include lots of detail, like ls(1).

Rawhide (rh) searches the filesystem, starting at each given path, for files that make the given search criteria expression true. If no search paths are given, the current working directory is searched.
The search criteria expression can come from the command line (with the -e option), from a file (with the -f option), or from standard input (stdin) (with -f-). If there is no explicit -e option expression, rh looks for an implicit expression among any remaining command line arguments. If no expression is specified, the default search criteria is the expression 1, which matches all filesystem entries.
An rh expression is a C-like expression that can call user-defined functions.
These expressions can contain all of C’s conditional, logical, relational, equality, arithmetic, and bit operators.
★★★★

Ответ на: комментарий от a1ba

Да, но можно было написать своими словами, как это сделано в заголовке. В текущем виде оно выглядит как «Я что-то нашёл, но мне настолько лень, что дальше сами.». Копипаста с описания по ссылке и больше ничего, так что можно считать что это 3.4, так как те, кто пройдут по ссылке, прочтут это и там, а тем, кто не пройдут, оно и без этого не надо.

mord0d ★★★★★
()
Ответ на: комментарий от mord0d

Выглядит, как потреб-ство на последней стадии.

можно считать что это 3.4

Не все буквы там знакомы?

dataman ★★★★
() автор топика
Ответ на: комментарий от vbr

$ hyperfine -N -w 5 "fd . /bin" "bfs /bin/" "rh -y /bin" --export-markdown rh.md

CommandMean [ms]Min [ms]Max [ms]Relative
fd . /bin11.7 ± 1.010.014.81.54 ± 0.19
bfs /bin/7.6 ± 0.76.810.21.00
rh -y /bin12.2 ± 1.510.516.31.61 ± 0.24
Summary
  bfs /bin/ ran
    1.54 ± 0.19 times faster than fd . /bin
    1.61 ± 0.24 times faster than rh -y /bin

bfs использует liburing: В утилиту bfs добавлена возможность использования liburing.

dataman ★★★★
() автор топика
Последнее исправление: dataman (всего исправлений: 1)
Для того чтобы оставить комментарий войдите или зарегистрируйтесь.