I created one table of employees.
1 Andy Account
2 Grecie HR
3 Jyorge Marketing
4 Seeya HR
5 Princy Account
6 Siya Production
Here the names of 4th employee and 6th employee are same but spellings are different. So i want to display only that records using grep command. I tried it like:
grep S[iee]ya emp
and
grep S[[i][ee]]ya emp
but it didn't work. Any solution?
grep -e 'Seeya' -e 'Siya'
... helps if you want to add-F
option as well – Sundeep Jul 18 '17 at 12:23-w
(whole word) option for this command. – Toby Speight Jul 18 '17 at 17:28