I have an inputfile that has comments on every line of code and each line begins with a unique format. (asdf ...)<br>
I am trying to write an awk script that would read each line of the <br>
input file and display the output without the comments in an output file. This is a sample line in the file.<br>
asdf........... #comment.<br>
I have tried awk'/asdf/ {print}'inputfile > output file<br>
But it prints out the whole line with the comments<br>
How could I do this ?<br>
Thanks <br>
Albert
I am trying to write an awk script that would read each line of the <br>
input file and display the output without the comments in an output file. This is a sample line in the file.<br>
asdf........... #comment.<br>
I have tried awk'/asdf/ {print}'inputfile > output file<br>
But it prints out the whole line with the comments<br>
How could I do this ?<br>
Thanks <br>
Albert