Closed AndydeCleyre closed 5 months ago
I am not sure I understand.
Like ls <FOLDER>
shows the FOLDER contents only, ug <FOLDER>
searches FOLDER only. Specify -r
to search recursively. It's documented on ugrep.com at the very top how ug PATTERN DIR
search works.
It is a choice I made. Don't know if it is the best choice, but the way GNU grep works with -Dread
and -Drecurse
(which is -r
) and -Dskip
is something that I want to be compatible with. GNU/BSD grep error out on searching a specified FOLDER unless -r
(-Drecurse
). So by default ug
searches one level, or you can specify -2
or -3
etc to deepen.
Oops, thanks! I'll update my aliases. I use the --help
output for documentation, not the website, and forgot about or missed this.
Hello, and thanks!
I'm using ugrep 6.0.0, and it's going great, but I just came upon this case I don't understand.
I installed a package from PyPI,
mbox-to-json
. When using it had an interesting error, I usedug
to start looking into it. The Python package is installed into a venv folder:~/.local/share/venvs/9df51ab2396e42715bdacc1354121b82/venv
.I'm searching for the term
alive_progress
, invokingug
as:~/.local/share/venvs/9df51ab2396e42715bdacc1354121b82/venv
~/.local/share/venvs/9df51ab2396e42715bdacc1354121b82/venv/lib
~/.local/share/venvs/9df51ab2396e42715bdacc1354121b82/venv/lib/python3.10
~/.local/share/venvs/9df51ab2396e42715bdacc1354121b82/venv/lib/python3.10/site-packages
~/.local/share/venvs/9df51ab2396e42715bdacc1354121b82/venv/lib/python3.10/site-packages/src
extract.py
,main.py
~/.local/share/venvs/9df51ab2396e42715bdacc1354121b82/venv/lib/python3.10/site-packages/src/*
extract.py
,main.py
,__pycache__/main.cpython-310.pyc
(binary)