hmm, I don't think that egrep can do that either. It buffers only a line.
【在 m*****e 的大作中提到】 : 1. which grep are you using? You should use GNU grep or egrep. : 2. make sure your lines do not end with '\r\n' like most files : edited under DOS
F*Q
6 楼
I use AIX 4.3 both grep and egrep give me the first line of the file when i use ?grep '\n' myfile but can't find all of the lines,also,the specified line I am searching sed even dosen't accept '\n':(
【在 c*****t 的大作中提到】 : hmm, I don't think that egrep can do that either. It buffers : only a line.
m*e
7 楼
No idea. GNU grep works for me on both Linux and Solaris.
【在 F***Q 的大作中提到】 : I use AIX 4.3 : both grep and egrep give me the first line of the file when : i use : ?grep '\n' myfile : but can't find all of the lines,also,the specified line I : am searching : sed even dosen't accept '\n':(