文字:Linux命令提取文本
All rights reserved. ERROR: ORA-00257: archiver error. Connect internal only, error. SP2-0751: Unable to connect to oracle. Exiting SQL*Plus
我想要的輸出:
ERROR: ORA-00257: archiver error.
我的命令:
sed 's/.*\(ERROR:.*\.\).*/\1/'
實際輸出:
ERROR: ORA-00257: archiver error. Connect internal only, error. SP2-0751: Unable to connect to oracle.
我如何調整我的sed命令僅此顯示:
ERROR: ORA-00257: archiver error.