Grep command

Grep is a Linux / Unix command-line tool used to search for a string of characters in a specified file. The text search pattern is called a regular expression. When it finds a match, it prints the line with the result. The grep command is handy when searching through large log files

Grepは、指定したファイルの中の文字列を検索するためのLinux / Unixのコマンドラインツールです。テキストの検索パターンを正規表現と呼びます。一致する文字列を見つけると、その結果を示す行を表示します。grepコマンドは、大きなログファイルを検索するときに便利です


What is grep command in Linux with examples?


Learn Grep Command in Unix with Practical Examples:

Grep command in Unix/Linux is the short form of 'global search for the regular expression'. The grep command is a filter that is used to search for lines matching a specified pattern and print the matching lines to standard output.

UnixのGrepコマンドを実例で学ぶ。
Unix/Linuxのgrepコマンドは、「正規表現のグローバル検索」の短縮形です。grepコマンドは、指定されたパターンにマッチする行を検索し、マッチした行を標準出力に表示するためのフィルタです。

What does grep command do?


The grep command searches one or more input files for lines containing a match to a specified pattern. By default, grep prints the matching lines. Grep searches the named input FILEs (or standard input if no files are named, or the file name - is given) for lines containing a match to the given PATTERN.

grepコマンドは,1つまたは複数の入力ファイルから,指定したパターンに一致する行を検索します。デフォルトでは、grepはマッチした行を表示します。grepは、指定されたPATTERNに一致する行を、指定された入力FILE(ファイル名がない場合や、ファイル名-が指定された場合は、標準入力)から検索します。

この記事が参加している募集

#私の推しキャラ

5,430件

この記事が気に入ったらサポートをしてみませんか?