Grep, Sed, Awk - From and to

From: Ragnar Moller \(MA/EAF\) (ragnar.moller@ericsson.com)
Date: Fri Apr 07 2006 - 01:14:26 EDT


I have been astounded at the power of the cryptic Unix commands paired
with pipe or redirection but ther is one i'm missing.

In my group we frequently have to search through log files of hundreds
of megabytes and the grep command usually will do.

But sometimes we have to find all the lines between the occurrence of a
string and the occurrence of another string, sort of a

cat filename ! from cecilia | to frederic

Another alternative could be to get the first occurrenc of a string to
the last occurrence

Cat filemane | fromfirst 2006-01-25 | tolast 2006-0128

Would someone have a proposal?
Actually I would have suspected the Unix community to have invented this
allready.

Maybe I should just try "man from"

Ragnar Moller, Paris
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:39:32 EDT