Solution 1:
You can supply grep the -o
option. Like such:
grep -o pattern file
(Hint: The mnemonic I use for this is: omit everything except match)
You can supply grep the -o
option. Like such:
grep -o pattern file
(Hint: The mnemonic I use for this is: omit everything except match)