Polecenie grep
Opcje wykonania grep w konsoli
Don't suppress output lines with binary data; treat as text.
Print the byte offset within the input file before each line of output.
Print only a count of matched lines. With -v or --revert-match option, count nonmatching lines.
Define an action for processing directories. Possible actions are:
read Read directories like ordinary files (default).
skip Skip directories.
recurse Recursively read all files under each directory. Same as -r.
Search for pattern. Same as specifying a pattern as an argument, but useful in protecting patterns beginning with -.
Take a list of patterns from file, one per line.
Print matched lines but not filenames (inverse of -l).
Ignore uppercase and lowercase distinctions.
List the names of files with matches but not individual matched lines; scanning per file stops on the first match.
Try to use memory mapping (mmap) to read input in order to save time.
Print lines and their line numbers.
Suppress normal output in favor of quiet mode; scanning stops on the first match.
Recursively read all files under each directory. Same as -d recurse.
Suppress error messages about nonexistent or unreadable files.
Print all lines that don't match pattern.
Match on whole words only. Words are divided by characters that are not letters, digits, or underscores.
Print lines only if pattern matches the entire line.
Print num lines of text that occur after the matching line.
Print num lines of text that occur before the matching line.
Print num lines of leading and trailing context. Default context is 2 lines.
Act like egrep, recognizing extended regular expressions such as (UN|POS)IX to find UNIX and POSIX.
Act like fgrep, recognizing only fixed strings instead of regular expressions. Useful when searching for characters that grep normally recognizes as metacharacters.
Expect the regular expressions traditionally recognized by grep (the default).
Display, before each line found, the name of the file containing the line. This is done by default if multiple files are submitted to a single grep command.
Print the version number and then exit.
When displaying filenames, follow each with a zero byte instead of a colon.
Przykłady grep działanie w Słownik polecenie G
- Przykład GREP użycie :
- Jak użyć files (or data read from standard input) with Lempel-Ziv coding (LZ77). Rename compressed file to filename.gz ; keep ownership modes and access/modification times. Ignore symbolic links. Uncompress co znaczy.
- Przykład GREP użycie :
- Jak użyć administration command. Like pwconv , the grpconv command creates a shadowed group file to keep your encrypted group passwords safe from password-cracking programs. grpconv creates the /etc/gshadow krzyżówka.
- Przykład GREP użycie :
- Jak użyć allows you to step through the execution of a program in order to find the point at which it breaks. It fully supports C and C++, and provides partial support for FORTRAN, Java, Chill, assembly, and co to jest.
- Przykład GREP użycie :
- Jak użyć System administration command. Modify group information for group słownik.
- Przykład GREP użycie :
- Jak użyć Collection. gcc , formerly known as the GNU C Compiler, compiles multiple languages (C, C++, Objective-C, Ada, FORTRAN, and Java) to machine code. Here we document its use to compile C, C++, or czym jest.