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

use grep, egrep to print matched pattern?



How can grep or egrep pattern in a file and print the pattern only? I
will not print the whole line. e.g. to search the email address in
/var/log/mail.log.  I am wondering is it possible to achieve this
without writing a perl script?


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: