Uruchomienie, wykonanie: grep [options] pattern [files]
Jak działa GREP, co robi GREP: Search one or more files for lines that match a regular expression pattern. Regular expressions are described in Chapter 7. Exit status is 0 if any lines match, 1 if none match, and 2 for errors. See also egrep and fgrep
Dostępne opcje, wywołanie GREP: 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 directories like ordinary files (default). Skip directories. 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.
- Co znaczy :
- Definicja Show the groups that each user belongs to (default user is the owner of the current group). Groups are listed in /etc/passwd and /etc/group co znaczy.
- Co znaczy :
- Definicja Split an OpenPGP format message into individual packets. If no file is specified, the message is read from stdin. The split packets are written as individual files krzyżówka.
- Co znaczy :
- Definicja groff document-formatting system, which normally runs troff along with a postprocessor appropriate for the selected output device. Options without arguments can be grouped after a single dash (-). A co to jest.
- Co znaczy :
- Definicja GhostScript , an interpreter for Adobe Systems' PostScript and PDF (Portable Document Format) languages. Used for document processing. With - in place of files , standard input is used słownik.
- Co znaczy :
- Definicja administration command. Remove corrupt or duplicate entries in the /etc/group and /etc/gshadow files. Generate warnings for other errors found. grpck will prompt for a yes or no before deleting czym jest.
Użycie GREP zastosowanie komendy na linii poleceńw Słownik G .