I want to extract lines that do not contain # and delete " , ; in the output.
My FILE input looks like this:
# ;string"1" # string"2"; string"3";
You can use grep and tr to get the desired output:
grep -v '#' FILE | tr -d ';"' string3
However, I want to use awk .
I can extract the inverse match awk '!/#/' FILE , but how can I use sub to delete " , ; in the same awk command?
awk
PoGibas
source share