Skip to content

Commit

Permalink
released 1.4.1: optimizations
Browse files Browse the repository at this point in the history
Optimizations and other improvements. Requires RE/flex 1.4.1 or greater.
  • Loading branch information
Robert-van-Engelen committed Sep 10, 2019
1 parent 59bfb12 commit 40577b5
Show file tree
Hide file tree
Showing 8 changed files with 471 additions and 455 deletions.
14 changes: 6 additions & 8 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,12 @@ install-data-hook:
echo "| You can use the ugrep command to search files. |"; \
echo "| |"; \
echo "| Here are some useful aliases to consider for ugrep: |"; \
echo "| alias ug = 'ugrep --color' |"; \
echo "| alias ux = 'ugrep --color -UX' |"; \
echo "| alias ugp = 'ugrep --color --pager |"; \
echo "| alias uxp = 'ugrep --color --pager -UX' |"; \
echo "| alias grep = 'ugrep --color -G' |"; \
echo "| alias egrep = 'ugrep --color -E' |"; \
echo "| alias fgrep = 'ugrep --color -F' |"; \
echo "| alias xgrep = 'ugrep --color -W' |"; \
echo "| alias ug = 'ugrep --color --pager |"; \
echo "| alias ux = 'ugrep --color --pager -UX' |"; \
echo "| alias grep = 'ugrep --color --pager -G' |"; \
echo "| alias egrep = 'ugrep --color --pager -E' |"; \
echo "| alias fgrep = 'ugrep --color --pager -F' |"; \
echo "| alias xgrep = 'ugrep --color --pager -W' |"; \
echo "| alias xdump = 'ugrep --color --pager -Xo \"\"' |"; \
echo "| |"; \
echo "| Thanks for using ugrep. |"; \
Expand Down
14 changes: 6 additions & 8 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -879,14 +879,12 @@ install-data-hook:
echo "| You can use the ugrep command to search files. |"; \
echo "| |"; \
echo "| Here are some useful aliases to consider for ugrep: |"; \
echo "| alias ug = 'ugrep --color' |"; \
echo "| alias ux = 'ugrep --color -UX' |"; \
echo "| alias ugp = 'ugrep --color --pager |"; \
echo "| alias uxp = 'ugrep --color --pager -UX' |"; \
echo "| alias grep = 'ugrep --color -G' |"; \
echo "| alias egrep = 'ugrep --color -E' |"; \
echo "| alias fgrep = 'ugrep --color -F' |"; \
echo "| alias xgrep = 'ugrep --color -W' |"; \
echo "| alias ug = 'ugrep --color --pager |"; \
echo "| alias ux = 'ugrep --color --pager -UX' |"; \
echo "| alias grep = 'ugrep --color --pager -G' |"; \
echo "| alias egrep = 'ugrep --color --pager -E' |"; \
echo "| alias fgrep = 'ugrep --color --pager -F' |"; \
echo "| alias xgrep = 'ugrep --color --pager -W' |"; \
echo "| alias xdump = 'ugrep --color --pager -Xo \"\"' |"; \
echo "| |"; \
echo "| Thanks for using ugrep. |"; \
Expand Down
468 changes: 207 additions & 261 deletions README.md

Large diffs are not rendered by default.

Binary file modified bin/linux/ugrep
Binary file not shown.
Binary file modified bin/macosx/ugrep
Binary file not shown.
Binary file modified bin/windows/ugrep.exe
Binary file not shown.
12 changes: 9 additions & 3 deletions man/ugrep.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH UGREP "1" "September 04, 2019" "ugrep 1.4.0" "User Commands"
.TH UGREP "1" "September 10, 2019" "ugrep 1.4.1" "User Commands"
.SH NAME
\fBugrep\fR -- universal file pattern searcher
.SH SYNOPSIS
Expand Down Expand Up @@ -61,7 +61,8 @@ zero byte or invalid UTF encoding. See also the \fB\-a\fR, \fB\-I\fR, \fB\-U\fR
and \fB\-X\fR options.
.TP
\fB\-\-break\fR
Adds a line break between results from different files.
Groups matches per file and adds a line break between results from
different files.
.TP
\fB\-C\fR[NUM], \fB\-\-context\fR[=\fI\fR\fINUM\fR]
Print NUM lines of leading and trailing context surrounding each
Expand Down Expand Up @@ -166,7 +167,8 @@ Always print the filename with output lines. This is the default
when there is more than one file to search.
.TP
\fB\-h\fR, \fB\-\-no\-filename\fR
Never print filenames with output lines.
Never print filenames with output lines. This is the default
when there is only one file (or only standard input) to search.
.TP
\fB\-\-help\fR
Print a help message.
Expand Down Expand Up @@ -276,6 +278,10 @@ options \fB\-A\fR, \fB\-B\fR, and \fB\-C\fR.
\fB\-\-no\-hidden\fR
Do not search hidden files and hidden directories.
.TP
\fB\-\-no\-mmap\fR
Do not use memory maps to search files. By default, memory maps
are used under certain conditions to improve performance.
.TP
\fB\-O\fR \fIEXTENSIONS\fR, \fB\-\-file\-extensions\fR=\fIEXTENSIONS\fR
Search only files whose file name extensions match the specified
comma\-separated list of file name EXTENSIONS. This option is the
Expand Down
Loading

0 comments on commit 40577b5

Please sign in to comment.