this should be at the seder grabbag in one of the one liners http://sed.sourceforge.net/grabbag/tutorials/testo.htm
in fact it is but Ill leave it to you to find it as there is so much other wonderful sed stuff there to look at. BB on Wed, Jul 30, 2003 at 01:00:24PM +1000, James Gray <[EMAIL PROTECTED]> wrote: > Hi All, > > A bit of a weird one, but I was wondering if anyone knows a simpler way to > display a block of lines in the middle of a file. Say lines 10-25 from > /var/log/messages? I'm currently doing it like this: > > head -25 /var/log/messages | tail -15 > > Any other ideas?? > > -- James > __________________________ > > A random quote of nothing: > > As Zeus said to Narcissus, "Watch yourself." > > -- > SLUG - Sydney Linux User's Group - http://slug.org.au/ > More Info: http://lists.slug.org.au/listinfo/slug -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
