Clip to Remove Set Number of Columns from Each Line in a File

;by don at htmlfixit dot com on 2/9/2005
^!Info This clip will x columns from all lines in a file
^!Set %remove%=^?{Enter Columns to Remove=_1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23}
^!Jump Doc_Start
^!SelectTo ^$GetLinecount$:^$Calc(^%remove%+1)$
^!Continue Is the last line selected to the proper column?
^!ToolBar Delete Block
^!Info [C]Done

I think this will work well. The select in Notetab is a little funky because it appears to highlight all, but then this Toolbar command only works on some columns, so to test if it got the right stuff, you need to carefully look at the last line. I added a continue there so you can stop it. The other two info’s are really surplus and can be discarded.

Leave a Reply

Recent Posts

Archives

Topics