cancelar
Mostrando resultados para 
Pesquisar então 
Você quer dizer: 

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
Mensagem 1 de 3
2.831Exibições

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
Mensagem 2 de 3
2.829Exibições
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
Mensagem 3 de 3
2.824Exibições