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

后端 未结 6 2112
无人共我
无人共我 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:45

    This might work for you:

    echo "(-9.1744438E-02,7.6282293E-02) (-9.1744438E-02,7.6282293E-02)" |
    sed 's/) (/\n/;s/[()]//g'
    -9.1744438E-02,7.6282293E-02
    -9.1744438E-02,7.6282293E-02
    

提交回复
热议问题