Файлы System/bin Android 12. Справочник.


  Все     Команда     Скрипт     Служба     Приложение  

fgrep
Показать строки, соответствующие регулярным выражениям

Симлинк на: [ ToyBox ]

Тип файла: команда
  Рус  
Toybox 0.8.4-android multicall binary:  (see toybox --help) 
usage:  grep [-EFrivwcloqsHbhn] [-ABC NUM] [-m MAX] [-e REGEX]... [-MS PATTERN]... [-f REGFILE] [FILE]...


Show lines matching regular expressions. If no -e, first argument is
regular expression to match. With no files (or "-" filename) read stdin.
Returns 0 if matched, 1 if no match found, 2 for command errors.

  • -e Regex to match. (May be repeated.)

  • -f File listing regular expressions to match. file search:

  • -r Recurse into subdirectories (defaults FILE to ".")

  • -R Recurse into subdirectories and symlinks to directories

  • -M Match filename pattern (--include)

  • -S Skip filename pattern (--exclude)

  • --exclude-dir=PATTERN Skip directory pattern

  • -I Ignore binary files match type:

  • -A Show NUM lines after -B Show NUM lines before match

  • -C NUM lines context (A+B) -E extended regex syntax

  • -F fixed (literal match) -a always text (not binary)

  • -i case insensitive -m match MAX many lines

  • -v invert match -w whole word (implies -E)

  • -x whole line -z input NUL terminated display modes: (default: matched line)

  • -c count of matching lines -l show only matching filenames

  • -o only matching part -q quiet (errors only)

  • -s silent (no error msg) -Z output NUL terminated output prefix (default: filename if checking more than 1 file)

  • -H force filename -b byte offset of match

  • -h hide filename -n line number of match
  • [ ToyBox ]     [ ManLinux ]