▼すべてを開く。
▲すべてを閉じる。
$ grep '^I' dmesg Initializing CPU#0 Inode cache hash table entries: 8192 (order: 4, 64 KB) Intel machine check architecture supported. Intel machine check reporting enabled on CPU#0. Initializing RT netlink socket Initializing Cryptographic API IP: routing cache hash table of 512 buckets, 4Kbytes Initializing IPsec netlink socket
grepコマンドで、検索する文字列「'^I'」(「^」は正規表現で行頭を意味する)、検索対象のファイル「dmesg」を指定すると、行頭が「I」で始まる行を検索して表示する。検索する文字列は、引用符「'」で囲むこと。