Michaeljc70
Programmer
Let me start by saying I am a programmer, but don't know awk. I need to remove all lines from a txt file that start with #.
I searched high and low and tried about 6 different things, but none worked.
An example of what I tried was awk '!/#/' file.txt > newfile.txt
In all cases, the file didn't change from the original.
Preferably, I would like to keep the file name the same rather than create a new file.
Thanks
I searched high and low and tried about 6 different things, but none worked.
An example of what I tried was awk '!/#/' file.txt > newfile.txt
In all cases, the file didn't change from the original.
Preferably, I would like to keep the file name the same rather than create a new file.
Thanks