[問題] 文字替換問題
看板Editor (編輯器(vim/emacs))作者benqm300 (小雞雞滴咆哮)時間14年前 (2010/09/13 22:32)推噓1(1推 0噓 12→)留言13則, 5人參與討論串1/1
因為在看mysql想用匯入檔案時有遇到依些問題,
假設檔案如下↓
1,莊啟明,台北市,45678854
2,正心程,台北縣,35891164
3,王依明,台北市,58913589
4,周立華,台北縣,44890327
5,鍾馗文,台北市,48052478
6,無文華,台北縣,14378064
7,郭俊及,高雄縣,97541257
8,陳立夫,高雄市,85421578
9,趙梓心,高雄縣,47899743
我想要把他變成↓
'1','莊啟明','台北市','45678854'
'2','正心程','台北縣','35891164'
'3','王依明','台北市','58913589'
'4','周立華','台北縣','44890327'
'5','鍾馗文','台北市','48052478'
'6','無文華','台北縣','14378064'
'7','郭俊及','高雄縣','97541257'
'8','陳立夫','高雄市','85421578'
'9','趙梓心','高雄縣','47899743'
我想不太到解法所以都用區塊選....,
vim 有正規法的好解法嗎?%s///g
先謝過。
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 122.122.8.240
→
09/13 22:55, , 1F
09/13 22:55, 1F
→
09/13 22:55, , 2F
09/13 22:55, 2F
→
09/14 00:01, , 3F
09/14 00:01, 3F
→
09/14 00:06, , 4F
09/14 00:06, 4F
→
09/14 00:08, , 5F
09/14 00:08, 5F
→
09/15 00:28, , 6F
09/15 00:28, 6F
→
09/15 00:28, , 7F
09/15 00:28, 7F
→
09/15 00:32, , 8F
09/15 00:32, 8F
推
09/15 03:25, , 9F
09/15 03:25, 9F
→
09/15 14:49, , 10F
09/15 14:49, 10F
→
09/15 15:03, , 11F
09/15 15:03, 11F
→
09/15 18:25, , 12F
09/15 18:25, 12F
→
09/24 13:09, , 13F
09/24 13:09, 13F
Editor 近期熱門文章
PTT數位生活區 即時熱門文章