Re: grep -ob: behave like ggrep, adapt documentation

2019-07-16 Thread Ted Unangst
Christopher Zimmermann wrote: > Hi, > > I just tried to find the byte position of a string within a binary file > using grep. Our base grep -bo let me down because it will only display > the position of the '\n' delimited line, not the position of the > pattern. > > That's what our grep(1) says:

grep -ob: behave like ggrep, adapt documentation

2019-07-16 Thread Christopher Zimmermann
Hi, I just tried to find the byte position of a string within a binary file using grep. Our base grep -bo let me down because it will only display the position of the '\n' delimited line, not the position of the pattern. That's what our grep(1) says: -b The offset in bytes of a matched