-1
grep "^\[bugID[[:digit:]]\{1,\}\]"
是第一行。我怎样才能grep
为bugID
或TICKET-
grep搜索替换
[bugID12345] fix for performance issue
[TICKET-12345] fix for memory leak issue
[bugID23244] fix for performance issue
[TICKET-54678] fix for memory leak issue
please,rephrase你的问题,并使用4个空格来缩进代码;你的文章很难编辑 – Rubens
正如@rubens所说,请改述并提出一个问题 – simonmorley