grep
の結果にファイル名を表示するには-H
オプションを使用します。
$ cat sample.txt
1 aaa
2 bbb
3 ccc
4 ddd
5 eee
6 fff
$ grep -H aaa sample.txt
sample.txt:aaa
Go to list of users who liked
grep
の結果にファイル名を表示するには-H
オプションを使用します。
$ cat sample.txt
1 aaa
2 bbb
3 ccc
4 ddd
5 eee
6 fff
$ grep -H aaa sample.txt
sample.txt:aaa
Register as a new user and use Qiita more conveniently
Go to list of users who liked