let\'s say I opened a file, then parsed it into lines. Then I use a loop:
foreach line $lines {}
inside the loop, for some lines, I want to
set fileID [open "lineremove.txt" r] set temp [open "temp.txt" w+] while {[eof $fileID] != 1} { gets $fileID lineInfo regsub -all "delted information type here" $lineInfo "" lineInfo puts $temp $lineInfo } file delete -force lineremove.txt file rename -force temp.txt lineremove.txt