用tcl去 自動砍掉檔案中重覆某些行

探討「內嵌」以及「腳本化」這兩個主題的技術-版主XO老師(熟悉的目前是 Tcl,討論內容也會環繞在 Tcl 四周,但是本版還是歡迎其他 Scripting 語言以及任何「內嵌」技術的討論。)

版主: b80203, ghost3401, XO, maa

分享到: Facebook

用tcl去 自動砍掉檔案中重覆某些行

文章kunfun2002 » 週三 8月 28, 2013 9:15 pm

I have a lot of the following regular part in my file

# NAMESCASESENSITIVE ON ; ==>I want to kill from this line

..... ==> kill this line

..... ==> kill this line

SITE unit
CLASS CORE ; ==> kill this line
SYMMETRY X Y ; ==> kill this line
SIZE 0.66 BY 5.04 ; ==> kill this line
END unit ==> To kill until this line



MACRO GIO_ANA_AVDD33 ==> This line no kill

..... ==> This line no kill
..... ==> This line no kill
..... ==> This line no kill
..... ==> This line no kill

# NAMESCASESENSITIVE ON ; ==>I want to kill from this line

..... ==> kill this line

..... ==> kill this line

SITE unit
CLASS CORE ;
SYMMETRY X Y ; ==> kill this line
SIZE 0.66 BY 5.04 ; ==> kill this line
END unit ==> To kill until this line



MACRO GIO_TEST ==> this line no kill
kunfun2002
剛學走路的小朋友
 
文章: 1
註冊時間: 週三 8月 28, 2013 9:11 pm

回到 內嵌與腳本化(Embedding & Scripting)

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 2 位訪客