在Mac下直接使用sed -i
會提示extra characters at the end of p command
錯誤,可以通過在-i
後面增加一個空字符串即可。例如:
sed -i "" "sed-command" file
參考文獻:
1. Getting sed error
在Mac下直接使用sed -i
會提示extra characters at the end of p command
錯誤,可以通過在-i
後面增加一個空字符串即可。例如:
sed -i "" "sed-command" file
參考文獻:
1. Getting sed error