LINUX.ORG.RU

История изменений

Исправление a--, (текущая версия) :

osqueryi 'SELECT path FROM file WHERE path LIKE "/etc/%%" and size>123456'
+------------------------------------+
| path                               |
+------------------------------------+
| /etc/ImageMagick-6/mime.xml        |
| /etc/alternatives/awk              |
| /etc/alternatives/c++              |
| /etc/alternatives/cc               |
| /etc/alternatives/cli              |
| /etc/alternatives/cpp              |
| /etc/alternatives/djview           |
| /etc/alternatives/editor           |
| /etc/alternatives/f77              |
| /etc/alternatives/f95              |
| /etc/alternatives/gnuplot          |
| /etc/alternatives/gnuplot.gih      |
| /etc/alternatives/infobrowser      |
| /etc/alternatives/js               |
| /etc/alternatives/nawk             |
| /etc/alternatives/pager            |
| /etc/alternatives/php              |
| /etc/alternatives/rlogin           |
| /etc/alternatives/rsh              |
| /etc/alternatives/unrar            |
| /etc/alternatives/view             |
| /etc/alternatives/wine64           |
| /etc/alternatives/www-browser      |
| /etc/alternatives/x-window-manager |
| /etc/lynx/lynx.cfg                 |
| /etc/mono/browscap.ini             |
| /etc/ssh/moduli                    |
| /etc/ssl/certs/ca-certificates.crt |
| /etc/ssl/certs/java/cacerts        |
+------------------------------------+

но тормозит она зверски, поскольку видимо нет у нее оптимизации пройтись только по 1 директории

Исходная версия a--, :

osqueryi 'SELECT path FROM file WHERE path LIKE "/etc/%%" and size>123456'
+------------------------------------+
| path                               |
+------------------------------------+
| /etc/ImageMagick-6/mime.xml        |
| /etc/alternatives/awk              |
| /etc/alternatives/c++              |
| /etc/alternatives/cc               |
| /etc/alternatives/cli              |
| /etc/alternatives/cpp              |
| /etc/alternatives/djview           |
| /etc/alternatives/editor           |
| /etc/alternatives/f77              |
| /etc/alternatives/f95              |
| /etc/alternatives/gnuplot          |
| /etc/alternatives/gnuplot.gih      |
| /etc/alternatives/infobrowser      |
| /etc/alternatives/js               |
| /etc/alternatives/nawk             |
| /etc/alternatives/pager            |
| /etc/alternatives/php              |
| /etc/alternatives/rlogin           |
| /etc/alternatives/rsh              |
| /etc/alternatives/unrar            |
| /etc/alternatives/view             |
| /etc/alternatives/wine64           |
| /etc/alternatives/www-browser      |
| /etc/alternatives/x-window-manager |
| /etc/lynx/lynx.cfg                 |
| /etc/mono/browscap.ini             |
| /etc/ssh/moduli                    |
| /etc/ssl/certs/ca-certificates.crt |
| /etc/ssl/certs/java/cacerts        |
+------------------------------------+

но тормозит она … поскольку нет оптимизации пройтись только по 1 директории