In a file, I have strings such as:
abc_1234_xyx
abc_34kk_xyx
abc_q3_xyx
I am trying to find a wild card pattern I can use so that a single grep can find strings with abc at the start and xyx at the end. The string length may vary.
I was hoping there was something like grep "abc*xyz" where "*" tell grep to match anything in the middle.
Thank you!
Gawker
abc_1234_xyx
abc_34kk_xyx
abc_q3_xyx
I am trying to find a wild card pattern I can use so that a single grep can find strings with abc at the start and xyx at the end. The string length may vary.
I was hoping there was something like grep "abc*xyz" where "*" tell grep to match anything in the middle.
Thank you!
Gawker