• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/41

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

41 Cards in this Set

  • Front
  • Back
-A
print NUM lines of trailing context after matching lines
Places a line containing --- between contigous groups of matches
-a
process binary file as if it were text
-B
print # lines of leading context before matching lines. Places a line containing --- between contigous groups of matches
-C
print # lines of output context. Places a line containing --- between contigous groups of matches
-b
print byte offset within input file before eac line of output
-binary-files=TYPE
if first few bytes of file indicate tat file contains binary, assume file is type TYPE. TYPE binary by default. Grep outputs either 1 line mssage sying binary file matches, or no message if no matc. If type is nomatch, grep assumes binary file doesnt match. (I) if type text, grep processes binary as text. This is equivelent to -a. **may output binary garbage, nasty side effects if output is terminal and if terminal driver interprets some of it as commands.
--colour[=WHEN]
surround matching string with marker. When means never, always or auto.
-c
count matching lines
-cv
count nonmatching lines
-D
if input file device, fifo, socket, action to process it. Action "read" by default skip, devices are skipped.
-d
directory input, use action. Action read by default. If action recurse, reads all files eac directory recursively
-E
interpret pattern as extended regular expression
-F
interpret pattern as list of fixed strings separated by newlines, any of which to eb matched.
-P
interpret pattern as perl
-f
obtain patterns from file, one per line. Empty file obtains zero, therefore matches nothing
-G
itnerpret pattern as basic regular expression
-H
print filename for each match
-h
suppress prefixing of filenames on output when multiple files searched
-I
process binary file as if no matching data
-i
ignore case
-L
print name each input file from which no output would be printed normally. scanning stops at first match.
-l
files with matches. print name of each input file. scanning stop at first match.
-m
stop reading file after # matching lines.
--nmap
nmap
-n
prefix each line of output with line number of input file
-o
only show part of line that matches pattern
--label=LABEL
displays input actually coming from file +____ this is useful for tools like zgrep
-line-buffered
use line buffering... but can be performance problem
-q
quiet - do not write anything to standard output, exit immediately with no status, even with error.
-R,-r
recursive - read all files under each directively. same as -d
--include=pattern
reccurse in directories only searching file matching pattern
--exclude=pattern
recurse in directories skip file matching pattern
-s
suppress errors about nonexistent/unreadable files
-U
treat as binary.
-u
report unix-style bite offsets
-V
version
-v
invert sense of matching - non matching lines
-w
select onliny lines contacting matches that form whole words.
-x
select matches that match whole line
-y
obsolete synonym for -i
-z
output zero byte instead of character that follows fiel name.