Re: sed裡用正規表示法

看板Linux作者時間16年前 (2009/10/16 12:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
On Sep 30, 6:37 pm, ckbear....@ptt.cc wrote: > (snip) chen@cpq2200:/tmp/x$ sed 's/\([0-9]*\)[ \t]*\([0-9]\)/\1:\2/g' < a.txt 1:3:5:7:9 3:4:3:2:5 Is this what you want? regards rudi
文章代碼(AID): #1Ar-__sh (Linux)
文章代碼(AID): #1Ar-__sh (Linux)