[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: grep a range
From: |
Paul Jarc |
Subject: |
Re: grep a range |
Date: |
Mon, 10 Dec 2001 11:23:37 -0500 |
User-agent: |
Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7 (i386-redhat-linux-gnu) |
Andy Wilson <awilson@healthsmart.net> wrote:
> I was wondering if there is a way to grep a range of numbers. I know using
> [3-7] would work, but what about using larger numbers. Let's say I want to
> grep a range like from 1204100052 to 1204100067 ?
It can be done, but grep operates on text, not numbers. So you have
to think of the numbers in terms of their textual properties.
12041000\(5[2-9]\|6[0-7]\)
paul
- grep a range, Andy Wilson, 2001/12/10
- Re: grep a range,
Paul Jarc <=