0
請幫助下面的錯誤。sed命令:未終止的命令
[email protected]:~$ awk '{print $4}' run.list | sed "s/[[email protected]/''/g"
sed: -e expression #1, char 17: unterminated `s' command
[email protected]:~$ awk '{print $4}' run.list | sed 's/"[[email protected]"/''/g'
sed: -e expression #1, char 17: unterminated `s' command
[email protected]:~$ awk '{print $4}' run.list | sed 's/"[[email protected]"//g'
sed: -e expression #1, char 17: unterminated `s' command
[email protected]:~$
謝謝。
括號需要轉義:''s/\ [deployer @ /''/ g「'。 – Amadan
請將其添加爲答案。我會接受,因爲你今天節省了寶貴的時間 –