grep
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
*grep [#sbc9bdcc]
**grep [#b95ac6e6]
-grep <patterns> <file-name> ※ファイルの文字列検索
grep -c
grep -i ※英字の大文字/小文字を区別しない
grep -n ※検索結果に行番号を表示
grep -v ※マッチしない行を表示
grep -G ※基本正規表現
grep -E ※拡張正規表現
grep $'\t' ※タブ文字
grep '\s' ※スペース
-grep -e <patterns> <file-name> ※検索パターンの指定
grep -v -e "^#" -e "^$" ※コメント行と空行を除く
-grep -f <pattern-file> <file-name> ※検索パターンをファ...
***文例集 [#y49a58e9]
grep -v '^#' ※コメント行を除く
grep -v '^$' ※ブランク行(改行のみの行)を除く
grep -Ev "^#|^$" ※コメント行とブランク行(改行のみの行)...
-指定した文字を色付けする
grep --color "abc" ※抽出した行のみ出力
grep -E --color "$|abc" ※抽出した行以外も出力
grep --color=auto "abc"
GREP_COLOR="1;31" grep -E --color "$|abc"
*関連用語 [#c40ea1b8]
-[[Linuxコマンド]]
-[[Linuxのテキスト処理]]
終了行:
*grep [#sbc9bdcc]
**grep [#b95ac6e6]
-grep <patterns> <file-name> ※ファイルの文字列検索
grep -c
grep -i ※英字の大文字/小文字を区別しない
grep -n ※検索結果に行番号を表示
grep -v ※マッチしない行を表示
grep -G ※基本正規表現
grep -E ※拡張正規表現
grep $'\t' ※タブ文字
grep '\s' ※スペース
-grep -e <patterns> <file-name> ※検索パターンの指定
grep -v -e "^#" -e "^$" ※コメント行と空行を除く
-grep -f <pattern-file> <file-name> ※検索パターンをファ...
***文例集 [#y49a58e9]
grep -v '^#' ※コメント行を除く
grep -v '^$' ※ブランク行(改行のみの行)を除く
grep -Ev "^#|^$" ※コメント行とブランク行(改行のみの行)...
-指定した文字を色付けする
grep --color "abc" ※抽出した行のみ出力
grep -E --color "$|abc" ※抽出した行以外も出力
grep --color=auto "abc"
GREP_COLOR="1;31" grep -E --color "$|abc"
*関連用語 [#c40ea1b8]
-[[Linuxコマンド]]
-[[Linuxのテキスト処理]]
ページ名: