Question about writing a bash script
Hello,
I want to write a script with sed to delete all contents after '#', except if '#' appears in string "".
For example,
input file:
test #delete
"test #not delete" #delete
#delete
I want the output is:
test
"test #not delete"
Can anyone help me?
Thanks
|