Skip to content

grep less.sh

M Hightower edited this page Aug 7, 2022 · 9 revisions

[m]grep-less.sh

Directory recursive search starts at the current directory. Searching for files containing a pattern or a set of patterns. The key difference between mgrep-less.sh and grep-less.sh is in the top menu presentation. mgrep-less.sh reveals the content of the lines that match. grep-less.sh focuses on file details like SHA1, date, time, etc.

  • -i ignore case
  • -v find files not containing the pattern

grep-less.sh

Recursive search for files with matching patterns. Use "dialog" to present each
file with sha1 hash and other details. Contents of the file are not shown on
the top menu. From the top menu, you can select view/diff/edit. grep-less.sh and
mgrep-less.sh are very similar.

grep-less.sh [-iv] pattern [ [-iv] pattern2 ] [ [-iv] pattern3 ]

-i    ignore case
-v    find files not containing the pattern

Additional options after -i or -iv will pass through to grep.
Unknown which additional options would be helpful.

mgrep-less.sh

Recursive search for files with matching patterns. Uses "dialog" to present
resulting lines containing matches. Multiple lines for a file will appear when
multiple matches in a file are found. From the top menu, you can select
view/diff/edit. mgrep-less.sh and grep-less.sh are very similar.

mgrep-less.sh [-iv] pattern [ [-iv] pattern2 ] [ [-iv] pattern3 ]

-i    ignore case
-v    find files not containing the pattern

Additional options after -i or -iv will pass through to grep.
Unknown which additional options would be helpful.
Clone this wiki locally