Insert space after period using sed

前端 未结 4 1580
无人及你
无人及你 2021-01-21 14:19

I\'ve got a bunch of files that have sentences ending like this: \\@.Next sentence. I\'d like to insert a space after the period.

Not all occurrences of

4条回答
  •  感动是毒
    2021-01-21 14:50

    I think the following would be correct:

    s/\\@\.[^\s]/\\@. /g
    

    Only replace the expression if it is not followed by a space.

提交回复
热议问题