[LINUX] grep command

A continuous record that was finally cut off yesterday. .. It's important to continue, but it's not good to stop, so I regained my mind and restarted.

What is the grep command?

-A command to display the line containing "character string (pattern)" in the file. -Multiple files and directories can be specified as search targets. -If no file is specified, read from standard input

Typical options

-C: Display only the number of matching lines -V: Display only the number of unmatched lines -N: Display the matched line with a line number at the beginning -F: Read a file from the search pattern -I: Case insensitive -E: Same as egrep (extended regular expression) ・ -F: Same as fgrep (search pattern eo fixed character string)

that's all.

Recommended Posts

grep command
Linux command # 4
Linux command # 3
Oreore grep
Command memorandum
nkf command
command prompt
sed command
Linux command # 5
command memo
find / grep command (beginner's personal memo)
top command
Command memorandum
Command memo
mv command
seq command
How to use the Linux grep command
Roughly systemctl command
Linux command list
ls command options
[Linux] Search command
Linux command <Basic 2>
First command plugin
pip command collection
scp command memo
nc command memorandum
Linux [directory command]
who command memo
Linux server command
Linux # Command Memo 1
Linux command [read]
Linux Command Summary
[Basic] linux command
Linux [shell command]
Convenient command combination
[Linux] Command / Knowledge
IPF command information
My linux command
Origin of grep
Future nl command
Memorandum conda command
Linux command <Basic 1>
ps command "wchan"
setuptools command memorandum
Django + Docker command
Broken pip command
Linux command collection
Linux mkdir command
Linux command basics
[Linux] Git command
Docker command summary
Linux (command memory)
DNS dig command
[Linux command] Petit data analysis with grep / awk / sort command
How to use the grep command and frequent samples