LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Remove unwanted lines from text script

How do you remove unwanted lines from a script that will be sent to a serial port?
It is an automatically created script which where commented lines start with a #.
I want to remove every line starting with a #.
 
0 Kudos
Message 1 of 3
(2,707 Views)

some lines do not contain any text.  just line feed / end of line. 

example:

# comment

#comment

 

execute this line

 

# comment

#comment

also execut this one

#

# comment

 

I want to extract all line that do not begin with #.  The trouble are lines that do not contain any text.

0 Kudos
Message 2 of 3
(2,705 Views)
Looks like the same type of scripts I have to run. Try the attached.

Message Edited by Dennis Knutson on 02-15-2007 02:29 PM

0 Kudos
Message 3 of 3
(2,700 Views)