I created one table of employees.    1 Andy Account    2 Grecie HR    3 Jyorge Marketing    4 Seeya HR    5 Princy Account    6 Siya ProductionHere 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 empand grep S[[i][ee]]ya empbut it didn't work.Any solution?
grep command to display same word with different spellings
grep;search
You need the OR operator '|' in grep:grep -E 'S(i|ee)ya' emp4 Seeya HR6 Siya Production