如何使用grep同時搜索兩個正則表達式。喂,我找了「我的名字是」,並在像文「我的銀行帳戶」:同時對兩個正則表達式求值
My name is Mike. I'm 16 years old.
I have no clue how to solve my grep problem,but
if I manage to solve it, then I'll transfer
you some money from my bank account.
我想的grep返回:
我的名字是 我的銀行帳戶
是否有可能只用一個grep調用來完成,還是應該編寫一個腳本來爲我做這件事?
這將僅返回包含兩條線expr1 *和* expr2。海報想要*還是*? – Will 2012-07-30 21:53:59