我需要使用sed,grep或awk刪除包含「['@everyone']」的所有行。在Linux中刪除文件中的行,完全匹配
例子:
USER: user1 - (327287311424072921) - No - ['@everyone']
USER: user2 - (323639467155241152) - No - ['@everyone']
USER: user3 - (213739640403696966) - No - ['@everyone', 'OK']
USER: user4 - (211732640103626928) - No - ['@everyone', 'Group1']
期望的結果:
USER: user3 - (213739640403696966) - No - ['@everyone', 'OK']
USER: user4 - (211732640103626928) - No - ['@everyone', 'Group1']
在此先感謝!
分享你試圖達到這個理想的結果嗎? – Chandru