sed extra characters at the end of p command

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

sed -i "" "sed-command" file

參考文獻:
1. Getting sed error

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章