Closed stdedos closed 6 months ago
One routine ... dislike I have with grep is:
grep
When I search / without sudo, I get a barrage of
/
sudo
ugrep: warning: cannot read /run/systemd/journal/streams/8:62791: Permission denied
messages. I understand the usefulness, the utility, and the reason for those messages.
... but they mess up my "expectation" that output is only what I am searching for (or nothing).
Can we "somehow" do so that those messages come "after" ugrep is done? or "just" as a summary?
ugrep
ugrep: warning: cannot read 1347637 files: Permission denied
These messages can be silenced with -s. Also specify --stats to see a report with the number of warnings generated (but not displayed).
-s
--stats
Nice, thanks! Very niche no-messages addition 👍
no-messages
One routine ... dislike I have with
grep
is:When I search
/
withoutsudo
, I get a barrage ofmessages. I understand the usefulness, the utility, and the reason for those messages.
... but they mess up my "expectation" that output is only what I am searching for (or nothing).
Can we "somehow" do so that those messages come "after"
ugrep
is done? or "just" as a summary?