this what i wrote but still there is a small problem, it doesn't erase the data betwen " " if this one starts on a line and finish on a 2nd line :
ex data:
data data "data unwanted
data unwanted " data data # data unwanted
awk '{ gsub(/"[^"]*"/, ""); print }' /data.log | awk '{ gsub(/#.*/...
hi,
i'm using this sed comande sed 's/"[^"]*"//g;s/#.*//' to
parse data file .
ex. data file :
"unwanted data" data
"unwanted data" data"unwanted data" #unwanted data
#unwanted data"unwanted data"
"#unwanted data" data#unwanted data
this sed comande takes out evrything between Double...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.