Skip to main content
12 events
when toggle format what by license comment
Feb 8, 2017 at 22:56 answer added serge timeline score: 0
Feb 8, 2017 at 22:23 comment added serge Due to the complexity of the file formatting, I think what I should be able to do is: print all lines that contains url=3D BUT print only what comes AFTER url=3D, AND print UNTIL the line that contains u0026ct BUT print only what comes before u0026ct. This way I may be able to escape the problem caused by the formatting, which causes sed and grep to stop at each end of line? But I have no idea of how to do it. As of now, I managed to print everything it matches the line containing u0026ct: awk '{print} /u0026ct/ {exit}' INBOX > output.txt ...
Feb 8, 2017 at 22:13 comment added serge sed version is sed (GNU sed) 4.2.2 and I do have -z (just checked it with man)
Feb 8, 2017 at 22:04 comment added Ralph Rönnquist Hmm, apparently your sed doesn't have -z, then. If it had, you wouldn't end up with any lines ending in '='. You may need to highlight that in your question. Check man sed and sed --version
Feb 8, 2017 at 20:43 answer added Ralph Rönnquist timeline score: 1
Feb 8, 2017 at 19:46 comment added serge thanks, the problem is that when performing on a file with many such patterns, it doesn't work (it works only if I put this pattern only in a single file or as an echo input)
Feb 8, 2017 at 8:26 answer added rcjohnson timeline score: 0
Feb 8, 2017 at 3:29 answer added Kamaraj timeline score: 0
Feb 7, 2017 at 21:54 comment added Ralph Rönnquist Maybe you should deal with "=\n" first, to join it into a single line, and then you can sed it (or do that joining in the sed program).
Feb 7, 2017 at 21:09 history edited dhag CC BY-SA 3.0
Improved formatting.
Feb 7, 2017 at 20:54 review First posts
Feb 7, 2017 at 22:03
Feb 7, 2017 at 20:51 history asked serge CC BY-SA 3.0