[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mit grep mehrere Zeilen suchen???



On Tue, May 27, 2003 at 01:26:20PM +0200, Martin Conrad <kontakt@fachwerk-lehmbau.de> wrote:
> cat deine_datei | grep -B 3 -A 3 'such_string'; '######## Naechstes 
> Ergebnis  #########'

useless use of cat!

% grep -B 3 -A 3 'such_string' deine_datei
tuts auch und ist eleganter.

hth,
 Daniel

-- 
(___)   Daniel K. Gebhart «http://dkg.con-fuse.org/»; | «dkg_at_con-fuse.org»
(  oo   Key fingerprint = 10A6 A760 2635 6184 981A  B19E 03AC D8F6 F412 9574
 \_ |
   \O   ...."Have you mooed today?"...

Attachment: pgpYdIOeF17fb.pgp
Description: PGP signature


Reply to: