UGREP(1) User Commands UGREP(1) (NAME) ugrep, ug - (SYNOPSIS) ugrep [OPTIONS] [-i|-j] [-Q|PATTERN] [-e PATTERN] [-N PATTERN] [-f FILE] [-E|-F|-G|-P|-Z] [-U] [-m [MIN,][MAX]] [--bool [--files|--lines]] [-r|-R|-1|...|-9|-10|-11|...] [-t TYPES] [-g GLOBS] [--sort[=KEY]] [-q|-l|-c|-o] [-v] [-n] [-k] [-b] [-A NUM] [-B NUM] [-C NUM] [-y] [--color[=WHEN]|--colour[=WHEN]] [--pretty] [--pager[=COMMAND]] [--hexdump|--csv|--json|--xml] [-I] [-z] [--zmax=NUM] [FILE ...] (DESCRIPTION) ugrep . . . . ug <<.ugrep>> CONFIGURATION . ug ugrep --config --pretty --sort . ugrep+ ug+ ugrep ug PDF . -l (--files-with-matches) . -c (--count) . -o . -m1, (--min-count=1) . POSIX ERE -E (--extended-regexp). -% (--bool) -%% (--bool --files) ug --help regex . -F (--fixed-strings) -G (--basic-regexp) -P (--perl-regexp) . -i (--ignore-case) . -j (--smart-case) -i . () -Z (--fuzzy) / . ug --help fuzzy . <<.>> . <<\n>> . . "" . <> 'a' . -Y grep . -f FILE FILE . . -U (--ascii --binary) ASCII . . ugrep UTF-8 . (BOM) . --encoding . FILE -r . `-' FILE . FILE -R -r -2...-9 ( ) . -I (--ignore-binary) . . (NUL) UTF . . -. (--hidden) . . -O . -t (-t list ). -g glob gitignore . --ignore-files glob gitignore . ug --help globs . GLOBBING . -z (--decompress) . --zmax=NUM NUM . --pretty ug . (TUI) -Q (--query) . PATTERN TUI -e PATTERN . (pager) --pager COMMAND . --format --replace . ug --help format . FORMAT . CSV --csv JSON --json XML --xml . -X (--hex) --hexdump . <<-->> FILE <<->> . <<--no->> . ug --help WHAT WHAT . : -A NUM, --after-context=NUM NUM . --group-separator . -o NUM . -B -C -y . -a, --text . --binary-files=text . . --all, -@ : --ignore-binary --ignore-files . ( ) . -@I -@. . -. --hidden . --and [-e] PATTERN PATTERN . -e PATTERN -e OR AND . -e A -e B --and -e C -e D ('A' 'B') ('C' 'D') . -e PATTERN --and . --stats . --not --andnot --bool --files --lines . --andnot [-e] PATTERN --and --not . --and --not --bool . -B NUM, --before-context=NUM NUM . --group-separator . -o NUM . -A -C -y . -b, --byte-offset . -u --ungroup . ASCII UTF-8 . UTF-8 . --binary-files=TYPE . TYPE `binary` `without-match` `text` `hex` `with-hex` . `binary` . `without-match` . `text` . `hex` () . `with-hex` . NUL () UTF -U --ascii --binary . -a -I -W -X..TP --bool, -%, -%% (Boolean) . `AND` `OR` `NOT` `(` `)` . `AND` `|` `OR` `-` `NOT` . `OR` `AND` . --bool 'A|B C|D' (`A` `B`) (`C` `D`) --bool 'A -B' `A` `B` . `AND` `OR` `NOT` . --bool 'A OR B AND C OR D' (`A` `B`) (`C` `D`) --bool 'A AND NOT B' `A` `B` . . --bool 'A "AND"|"OR"' `A` `AND` `OR` . . --bool '(A B)|C' `A` `B` `C` . -F . -E -F -G -P -Z --bool (-E ). -f FILE . -%% --bool --files . --stats . --and --andnot --not --files --lines . --break . --heading . -C NUM, --context=NUM NUM (context) . --group-separator . -o NUM . -A -B -y . -c, --count . -o -u . -v . -m1, ( --min-count=1) . --color[=WHEN], --colour[=WHEN] --colors GREP_COLOR GREP_COLORS . WHEN `never` `always` `auto` `auto` . `auto` . --colors=COLORS, --colours=COLORS COLORS . COLORS : `sl=` ( ) `cx=` ( ) `mt=` ( ) `ms=` ( ) `mc=` ( ) `fn=` ( ) `ln=` ( ) `cn=` ( ) `bn=` ( ) `se=` () `qp=` ( TUI) `qe=` ( TUI) `qr=` ( TUI) `qm=` ( TUI) `ql=` ( TUI) `qb=` ( TUI). ANSI SGR `k` () `r` () `g` () `y` () `b` () `m` () `c` () `w` () . . `+` (bright) . `n` () `f` () `h` () `i` () `u` () . `hl` . `rv` -v `sl=` `cx=` . GREP_COLORS . grep --colors='7;32' --colors=ig ms ( ). --config[=FILE], ---[FILE] FILE . `.ugrep` . FILE . FILE . ug `.ugrep` --config=FILE --no-config . --no-config ugrep. . --no-confirm TUI -Q . . --cpp C++ . --format -u . --csv CSV . -H -n -k -b . --format -u . -D ACTION, --devices=ACTION FIFO ACTION . ACTION `skip` . ACTION `read` . ACTION `skip` -Dskip . -d ACTION, --directories=ACTION ACTION . ACTION `read` . ACTION `recurse` . -r . ACTION `dereference-recurse` . -R . ACTION `recurse` -r . --delay=DELAY -Q . 3 . --depth=[MIN,][MAX], -1, -2, -3, ... -9, -10, -11, ... MIN MAX -1 (--depth=1) . -3 -5 -3-5 -3,5 . -R -r -r . --dotall `.` . `.*` . -E, --extended-regexp (ERE) . . -e PATTERN, --regexp=PATTERN PATTERN . . -e (`-`) -f FILE. --encoding=ENCODING . ENCODING binary UTF-8 --encoding=binary . -U --ascii --binary PATTERN . ENCODING : `binary` `ASCII` `UTF-8` `UTF-16` `UTF-16BE` `UTF-16LE` `UTF-32` `UTF-32BE` `UTF-32LE` `LATIN1` `ISO-8859-1` `ISO-8859-2` `ISO-8859-3` `ISO-8859-4` `ISO-8859-5` `ISO-8859-6` `ISO-8859-7` `ISO-8859-8` `ISO-8859-9` `ISO-8859-10` `ISO-8859-11` `ISO-8859-13` `ISO-8859-14` `ISO-8859-15` `ISO-8859-16` `MAC` `MACROMAN` `EBCDIC` `CP437` `CP850` `CP858` `CP1250` `CP1251` `CP1252` `CP1253` `CP1254` `CP1255` `CP1256` `CP1257` `CP1258` `KOI8-R` `KOI8-U` `KOI8-RU` `null-data`. --exclude=GLOB GLOB -g ^GLOB. GLOB ** * ? [...] \ . GLOB `/` . GLOB `/` --exclude-dir . --exclude --include . GLOB (globbing) . . --exclude-dir=GLOB GLOB -g ^GLOB/. GLOB ** * ? [...] \ . GLOB `/` . --exclude-dir --include-dir . GLOB . . --exclude-from=FILE glob FILE glob . glob ** * ? [...] \ . glob `/` . glob `/` --exclude-dir . glob `!` . FILE `#` . FILE `-` . . --ignore-files . --exclude-fs=MOUNTS MOUNTS . MOUNTS . MOUNTS . --exclude-fs=MOUNTS --include-fs=MOUNTS . ..TP -F, --fixed-strings . ugrep fgrep . PATTERN -e PATTERN -N PATTERN -f FILE -f FILE PATTERN . -f FILE, --file=FILE FILE . . FILE . FILE GREP_PATH FILE . /usr/local/share/ugrep/patterns FILE . FILE `-' . . . --files, -%% --lines. --bool . --bool --files 'A B|C -D' `A' `B' `C' `D' . --and --andnot --not --bool --lines . -%% --bool --files . --filter=COMMANDS COMMANDS . COMMANDS `exts:command arguments' `exts' `command' . `exts' . `*' . `command' . `%' . `%' . --filter='pdf:pdftotext % -' PDF . `%' `-' . `%' . --label=.ext `ext' . `exts' . . --filter-magic-label=[+]LABEL:MAGIC LABEL << >> (magic bytes) MAGIC . +LABEL . LABEL --filter=COMMANDS . . --format=FORMAT FORMAT . --format='%f:%n:%O%~' `%O' `%f' `%n' `%~' . -P FORMAT `%1' `%9' `%[NUM]#' `%[NAME]#' . `%%' `%' . `ugrep --help format' FORMAT `man ugrep' . -o -u . -A -B -C -y . --free-space ( ) . --from=FILE FILE . FILE `-' . `find ... -print | ugrep --from=- ...' . -G, --basic-regexp (BRE) . -g GLOBS, --glob=GLOBS, --iglob=GLOBS GLOBS --include='glob' `glob' GLOBS. `glob' `!' `^' `glob' --exclude='glob'. `glob' `/' -d -r -R -r . (basenames) . `glob' `/' --include-dir='glob' --exclude-dir='glob'. `./' `/' . --iglob=GLOBS . -M -O -t . `ugrep --help globs' GLOBBING `man ugrep' . --glob-ignore-case glob . --group-separator[=SEP] SEP -A -B -C. (`--') . --no-group-separator -A -B -C . -H, --with-filename . . -h, --no-filename . ( ) . --heading, -+ . . --pretty . --help [WHAT], -? [WHAT] WHAT . `--help regex' `--help globs' glob `--help fuzzy' `--help format' --format=FORMAT . --hexdump[=[1-8][a][bch][A[NUM]][B[NUM]][C[NUM]]] . . `a' `*' `b' `c' `h' `A' NUM `B' NUM `C' NUM . `A' `B' `C' --hexdump -A -B -C . -U -W -X . --hidden, -. ( grep ). --hyperlink[=[PREFIX][+]] () . --colors=hl. PREFIX file:// PREFIX:// . `+' -k . -I, --ignore-binary (). --binary-files=without-match . NUL () . UTF -U --ascii --binary . -i, --ignore-case . ugrep . --ignore-files[=FILE] glob FILE . FILE `.gitignore' . FILE . FILE FILE glob . FILE `-' . glob --exclude-from=FILE --ignore-files . . --no-ignore-files --ignore-files . --include=GLOB GLOB -g GLOB. GLOB ** * ? [...] \ . GLOB `/' -d -r -R -r . . GLOB `/' --include-dir . . --exclude --include . GLOB . . --include-dir=GLOB GLOB -g GLOB/. GLOB ** * ? [...] \ . GLOB `/' -d -r -R -r . . --exclude-dir --include-dir . GLOB . ..TP --include-from=FILE glob FILE glob . glob ** * [...] (wildcard) \ . glob `/' (basename) . glob `/' --include-dir . glob `!' . `#' FILE . FILE `-' . . --include-fs=MOUNTS MOUNTS . MOUNTS . MOUNTS --include-fs=. (). --exclude-fs=MOUNTS --include-fs=MOUNTS . . --index (index) . ( ) ugrep-indexer . -r --recursive . . ( ) . Unicode `*' `+' . -U --ascii --binary . --stats . -J NUM, --jobs=NUM . . -J1 : . -j, --smart-case . --json JSON . -H -n -k -b . --format -u . -K [MIN,][MAX], --range=[MIN,][MAX], --min-line=MIN, --max-line=MAX MIN MAX . -k, --column-number . --tabs . -L, --files-without-match . . ``(standard input)'' . -l, --files-with-matches . . ``(standard input)'' . . --label=LABEL LABEL . LABEL . `(standard input)' . --line-buffered . --lines --bool . -M MAGIC, --file-magic=MAGIC MAGIC . << >> MAGIC . . MAGIC `!' `^' . -O -t . . -m [MIN,][MAX], --min-count=MIN, --max-count=MAX MIN MAX . MIN MAX . -m1 -cm1, ( ) . -u --ungroup . -K . --match . . --max-files=NUM NUM . --sort -J1 . --sort NUM . --max-size=MAX MAX . kb mb gb tb MAX . --min-size=MIN MIN . kb mb gb tb MIN . --mmap[=MAX] (memory map) . . MAX MAX mmap . -N PATTERN, --neg-regexp=PATTERN PATTERN -e PATTERN . . -N -P . . -n, --line-number . . --not [-e] PATTERN PATTERN . -e A --not -e B `A' `B' . `A' `B' -e A --andnot -e B . --stats . --and --andnot --bool --files --lines . --null, -0 . `find -print0' `xargs -0' . -H --with-filename --null-data . --null-data, -00 NUL LF . --encoding=ENCODING ENCODING . --null-data --encoding=null-data . --null-data UTF-16/32 . ugrep `\n' `\R' . --encoding --null . -O EXTENSIONS, --file-extension=EXTENSIONS EXTENSIONS -g '*.ext' `ext' EXTENSIONS. `ext' `!' `^' `ext' -g '^*.ext'. -g -M -t . -o, --only-matching . -A -B -C . --only-line-number . . -P, --perl-regexp PATTERN Perl PCRE2 . Perl POSIX grep . -p, --no-dereference -R -r ..TP --pager[=COMMAND] COMMAND . PAGER COMMAND `less' . --heading --line-buffered . --pretty[=WHEN] --color --heading -n --sort --tree -T . WHEN `never' `always' `auto' . `auto' . -Q[=DELAY], --query[=DELAY] (Query): TUI . ANSI . DELAY ( ) . -Q DELAY . -e PATTERN PATTERN -e . F1 CTRL-Z . F2 CTRL-Y . --view PAGER VISUAL EDITOR . TAB SHIFT-TAB . ENTER . -l ALT-l -n ALT-n . ALT-] ALT-} (fuzzyness) . ALT OPTION CTRL-O + KEY `KEY' F1 CTRL-Z KEY . --no-confirm --delay --split --view . -q, --quiet, --silent : . . -R, --dereference-recursive -r . -r, --recursive . FILE -r . --replace=FORMAT FORMAT `%'. -P FORMAT `%1' `%9' `%[NUM]#' `%[NAME]#' (group captures) . `%%' `%' `%~' . --format `ugrep --help format' FORMAT `man ugrep' . -S, --dereference-files -r . . -s, --no-messages : . --save-config[=FILE] [OPTIONS] FILE OPTIONS . FILE --config=FILE . `.ugrep' ug . FILE `-' . OPTIONS . . config=FILE . --separator[=SEP], --context-separator=SEP SEP . (`:') (`|') (`-') (context) . --group-separator . --split TUI -Q . --sort[=KEY] KEY . ug ugrep . KEY `name' () `best' -Z ( ) `size' `used' `changed' `created' . `rname' `rbest' `rsize' `rused' `rchanged' `rcreated' . . . FILE . --stats . -T, --initial-tab (Tab) . -t TYPES, --file-type=TYPES TYPES . -O -g . (magic bytes) -M . `!' `^' . . . (-tlist ): `actionscript', `ada', `adoc', `asm', `asp', `aspx', `autoconf', `automake', `awk', `Awk', `basic', `batch', `bison', `c', `c++', `clojure', `cpp', `csharp', `css', `csv', `dart', `Dart', `delphi', `elisp', `elixir', `erlang', `fortran', `gif', `Gif', `go', `groovy', `gsp', `haskell', `html', `jade', `java', `jpeg', `Jpeg', `js', `json', `jsp', `julia', `kotlin', `less', `lex', `lisp', `lua', `m4', `make', `markdown', `matlab', `node', `Node', `objc', `objc++', `ocaml', `parrot', `pascal', `pdf', `Pdf', `perl', `Perl', `php', `Php', `png', `Png', `prolog', `python', `Python', `r', `rpm', `Rpm', `rst', `rtf', `Rtf', `ruby', `Ruby', `rust', `scala', `scheme', `seed7', `shell', `Shell', `smalltalk', `sql', `svg', `swift', `tcl', `tex', `text', `tiff', `Tiff', `tt', `typescript', `verilog', `vhdl', `vim', `xml', `Xml', `yacc', `yaml', `zig'. --tabs[=NUM] (Tab) NUM -k. NUM ( ) . . --tag[=TAG[,END]] TAG. END TAG . `___' . --tree, -^ -c --count -l --files-with-matches -L --files-without-match. --pretty . -U, --ascii, --binary ASCII (binary). PATTERN . -U '\xa3' U+00A3 UTF-8 C2 A3 A3 () . UTF <<>> NUL () . -u, --ungroup . . -V, --version . -v, --invert-match . --view[=[+]COMMAND] COMMAND / TUI -Q CTRL-Y +COMMAND COMMAND . -W, --with-hex . --binary-files=with-hex . -W --hexdump . -U . -w, --word-regexp PATTERN . (underscore) . --width[=NUM] NUM . NUM . ..TP -X, --hex . --binary-files=hex . --hexdump . -U . -x, --line-regexp ^ $ . --xml XML . -H -n -k -b . --format -u . -Y, --empty . `^' `$' . x*y? x*y*z* x*(y?|z) . grep --no-empty . -y, --any-line, --passthru (passthru). `-' . -A -B -C . -Z[best][+-~][MAX], --fuzzy[=[best][+-~][MAX]] (Fuzzy): MAX . -Z1 : . `+` `-' / `~' `+' `-' `~' . -Z+~3 . `best' . -Zbest (Boolean) . --sort=best . . `.' `.?` . -U Unicode ASCII . -Z . -z, --decompress . (.cpio .pax .tar) ( .zip .7z .taz .tgz .tpz .tbz .tbz2 .tb2 .tz2 .tlz .txz .tzst) . --zmax=NUM NUM . -g -O -M -t (globs) . : gzip (.gz) compress (.Z) zip 7z bzip2 (.bz .bz2 .bzip2 .tbz .tbz2 .tb2 .tz2) xz (.xz .txz) lzma ( .lzma .tlz) zstd (.zst .zstd .tzst) lz4 ( .lz4) brotli ( .br) bzip3 ( .bz3). --zmax=NUM -z --decompress NUM . --zmax=1 cpio pax tar zip 7z . cpio pax tar zip 7z --zmax=2 . NUM . NUM . WHAT `ugrep --help WHAT' . (EXIT STATUS) ugrep : 0 . 1 . >1 . -q --quiet --silent 0 ..SH " (CONFIGURATION)" ug ugrep --config --pretty --sort `.ugrep` . `NAME=VALUE' `NAME` ( `--`) `=VALUE' . `#' . --config=FILE ---FILE . FILE . : . --save-config `.ugrep' . . --save- config=FILE FILE . FILE `-' . (GLOBBING) (Globbing) -g (--glob --iglob) --include --include-dir --include-from --exclude --exclude-dir --exclude-from --ignore-files (basenames) . . --ignore-files gitignore . . `/' --include-dir --exclude-dir . `/' . (basename) . *.h foo.h bar/foo.h . bar/*.h bar/foo.h foo.h bar/bar/foo.h . /*.h foo.h bar/foo.h `./' `/' . `!' `^' -g^GLOB () . `!' ( `^') --include-from --exclude-from --ignore-files . `#' . (Glob Syntax and Conventions) * / . ? / . [abc-e] a b c d e . [^abc-e] a b c d e / . [!abc-e] a b c d e / . / . . **/ . /** / . \? ? . (Glob Matching Examples) * a b x/a x/y/b a a x/a x/y/a b x/b a/a/b /* a b x/a x/b x/y/a /a a x/a x/y/a a?b axb ayb a b ab a/b a[xy]b axb ayb a b azb a[a-z]b aab abb acb azb a b a3b aAb aZb a[^xy]b aab abb acb azb a b axb ayb a[^a-z]b a3b aAb aZb a b aab abb acb azb a/*/b a/x/b a/y/b a/b a/x/y/b **/a a x/a x/y/a b x/b. a/**/b a/b a/x/b a/x/y/b x/a/b a/b/x a/** a/x a/y a/x/y a b/x a\?b a?b a b ab axb a/b -g --exclude --exclude-dir --include include-dir (exclude) (include) . --ignore-files gitignore `.gitignore` . (ignore) gitignore --exclude-from `/' ..SH " (ENVIRONMENT)" GREP_PATH . -f . GREP_PATH /usr/local/share/ugrep/patterns . GREP_COLOR ANSI SGR --color 1;35;40 . GREP_COLORS . GREP_COLORS ANSI SGR --color . ANSI SGR (:) cx=33:mt=1;31:fn=1;35:ln=1;32:cn=1;32:bn=1;32:se=36 TUI :qp=1;32:qe=1;37;41:qm=1;32:ql=36:qb=1;35 . mt= ms= mc= GREP_COLORS GREP_COLOR . --colors GREP_COLORS . GREP_COLORS ANSI SGR `what=substring' `substring' ANSI SGR - `k' () `r' () `g' () `y' () `b' () `m' () `c' () `w' () . . `+' (bright) . : `n' () `f' () `h' () `i' () `u' (). : sl= . cx= ( ). rv -v sl= cx= . mt= . ms= mt= . mc= mt= . fn= . ln= . cn= . bn= . se= . rv -v sl= cx= . hl (\33]8;;link) . ne << >> \33[K . qp= (prompt) TUI. qe= TUI. qr= TUI. qm= TUI. ql= TUI. qb= TUI. (FORMAT) --format=FORMAT . --replace=FORMAT . FORMAT : %[TEXT]F -H: TEXT . %f . %a . %p . %z (). %[TEXT]H -H: TEXT \" \\ " \ . %h \" \\ " \ . %[TEXT]I -H: TEXT XML . %i XML. %[TEXT]N -n: TEXT . %n . %[TEXT]K -k: TEXT . %k . %[TEXT]B -b: TEXT . %b . %[TEXT]T -T: TEXT (tab). %t (tab). %[SEP]$ SEP . %[TEXT]< : TEXT. %[TEXT]> : TEXT. %, : %[,]>. %: : %[:]>. %; : - %[;]>. %| : %[|]>. %[TEXT]S : TEXT %[SEP]$ . %s %[TEXT]S %[SEP]$ . %~ (newline). %M . %m . %O . %o . %Q \" \\ " \ . %q \" \\ " \ . %C C/C++. %c C/C++. %J JSON. %j JSON. %V CSV. %v CSV. %X XML. %x XML. %w (wide characters). %d . %e . %Z -Z. %u -u . %1 %9 %[1]# -P . %[NUM]# NUM -P . %[NUM]b NUM -P . e d . %[NUM1|NUM2|...]# NUM -P . %[NUM1|NUM2|...]b NUM -P . e d ..IP %[NAME]# NAME -P `(?PATTERN)' %G . %[NAME]b NAME -P `(?PATTERN)' . e d . %[NAME1|NAME2|...]# NAME -P `(?PATTERN)' %G . %[NAME1|NAME2|...]b NAME -P `(?PATTERN)' . e d . %G / -P . %[TEXT1|TEXT2|...]G TEXT -P . %g / 1 -P . %[TEXT1|TEXT2|...]g TEXT -P . %% . %~ `\n' . [TEXT] . [] %[,]F . %[SEP]$ %u . %F %H %I %N %K %B %S %G %[SEP]$ . [SEP] --separator . . %u -u --ungroup . : --format-begin=FORMAT FORMAT . --format-open=FORMAT FORMAT . --format-close=FORMAT FORMAT . --format-end=FORMAT FORMAT . -A -B -C -y --break --heading --color -T --null . (EXAMPLES) `patricia' `myfile.txt': $ ugrep -w patricia myfile.txt `patricia' : $ ugrep -wi patricia myfile.txt `patricia' : $ ugrep -Z2 -wi patricia myfile.txt `patricia' : $ ugrep -cwi patricia myfile.txt `patricia' : $ ugrep -cowi patricia myfile.txt `amount' ( AND ): $ ugrep -i -% 'amount \d+(\.\d+)?' myfile.txt -e --and: $ ugrep -wi -e amount --and '\d+(\.\d+)?' myfile.txt : $ ugrep -o '\w+' myfile.txt ( U+1F600 U+1F60F): $ ugrep -o '[\x{1F600}-\x{1F60F}]' myfile.txt ( ) : $ ugrep -q '[^[:ascii:]]' myfile.txt && echo "contains Unicode" `FIXME' C++ : $ ugrep -C1 -R -n -k -tc++ FIXME `FIXME' : $ ugrep -o -C20 -R -n -k -tjs FIXME BEGIN END `*?' `\n' : $ ugrep -n 'BEGIN.*\n(.*\n)*?.*END' myfile.txt C/C++ : $ ugrep -n -e '//.*' -e '/\*(.*\n)*?.*\*+\/' myfile.cpp c++/comments: $ ugrep -n -f c++/comments myfile.cpp C/C++ `FIXME' `FIXME' : $ ugrep -e FIXME -N '"(\\.|\\\r?\n|[^\\\n"])*"' myfile.cpp cpp/zap_strings: $ ugrep -e FIXME -f cpp/zap_strings myfile.cpp `FIXME' `TODO' : $ ugrep -n -e FIXME -e TODO myfile.cpp `FIXME' `urgent' : $ ugrep -n -e FIXME --and urgent myfile.cpp ( AND ): $ ugrep -n -% 'FIXME urgent' myfile.cpp `FIXME' `later' : $ ugrep -n -e FIXME --andnot later myfile.cpp ( AND - NOT ): $ ugrep -n -% 'FIXME -later' myfile.cpp `FIXME' `later': $ ugrep -e FIXME --andnot later --format='%,%n' myfile.cpp `FIXME' `LICENSE' : $ ugrep -l -%% 'FIXME LICENSE' `FIXME' C/C++ tar (tarball): $ ugrep -z -tc++ -n FIXME project.tgz `FIXME' C/C++ `bak' `old': $ ugrep -n FIXME -tc++ -g^bak/,^old/ `copyright' cpio jar pax tar zip 7z PDF PDF: $ ugrep -z -w --filter='pdf:pdftotext % -' copyright `A3hhhhA3' () -U ( `\xaf' U+00A3 UTF-8 C2 A3 ) --hexdump C1 :.IP $ ugrep -U --hexdump=C1 '\xa3[\x00-\xff]{2}\xa3' a.out (pager) : $ ugrep -X --pager '' a.out `.gitignore' : $ ugrep -l '' --ignore-files RPM `rpm' ( ): $ ugrep -3 -l -tRpm '' rpm/ : $ tail -f /var/log/system.log | ugrep -u -i -w bug (fuzzy) (Boolean): $ ugrep -Q -l -% -Z2 --sort=best MacRoman CR : $ ugrep --encoding=MACROMAN '\w+' mac.txt (fuzzy): $ ugrep --help fuzzy (COPYRIGHT) Copyright (c) 2021-2025 Robert A. van Engelen ugrep BSD-3 . . ugrep . (SEE ALSO) ugrep-indexer(1), grep(1), zgrep(1). (BUGS) : ugrep 7.8.4 August 5, 2026 UGREP(1)