AWK/SED. How to remove parentheses in simple text file

后端 未结 6 2111
无人共我
无人共我 2021-02-07 11:14

I have a text file looking like this:

(-9.1744438E-02,7.6282293E-02) (-9.1744438E-02,7.6282293E-02)  ... and so on.

I would like to modify th

6条回答
  •  执笔经年
    2021-02-07 11:36

    As was said, almost:

    sed 's/[()]//g' inputfile > outputfile
    

    or in awk:

    awk '{gsub(/[()]/,""); print;}' inputfile > outputfile
    

提交回复
热议问题