Grep

Hi,

I am not sure which newsgroup is right for this message … i think this one
is so.
the version of grep/egrep for QNXRTP does not support -r (recursive) option.
is it a porting issue ? or there is something i am missing ? whatever it is
this is slowing me down. any suggestions regarding this issue are welcome.

thanks,
ankur

Ankur Bhargava <bhargava_ankur@hotmail.com> wrote:
: Hi,

: I am not sure which newsgroup is right for this message … i think this one
: is so.
: the version of grep/egrep for QNXRTP does not support -r (recursive) option.
: is it a porting issue ? or there is something i am missing ? whatever it is
: this is slowing me down. any suggestions regarding this issue are welcome.

‘-r’ is GNU Grep feature, but compiling GNU Grep should be an uneventfull
adventure.

The only trouble were config.sub/guess in the GNU/Grep distribution
are outdated. So get
wget ftp://ftp.gnu.org/gnu/config/config.guess
wget ftp://ftp.gnu.org/gnu/config/config.sub
wget ftp://ftp.gnu.org/gnu/grep/grep-2.4.2.tar.gz

gzip -dc grep-2.4.2.tar.gz |tar xvf -
cd grep-2.4.2
cp newconfig/config.guess .
cp newconfig/config.sub .
…/configure
make
make check
make install

if you can not have the newest config.sub/guess try
…/configure --host=i386-svr4
That should keep configure happy.

Best of luck.

: thanks,
: ankur


\

au revoir, alain

Aussi haut que l’on soit assis, on n’est toujours assis que sur son cul !!!

Hi,

I just want to say THANK YOU again, Alain… Your suggestion to change
config.guess/.sub pair is really invaluable, at least for me. I was
always wondering what to do with a lot of relatively old packages :frowning: In
many cases I did something like
…/configure --host=PENTIUM

which was defintely good idea - it went working (i.e. configuring :slight_smile:,
but then make had a lot of pain.

One suggestion - may be it is good idea to put this thing in visible
place.

And thanks again.

BR, Andrej

Alain Magloire wrote:

Ankur Bhargava <> bhargava_ankur@hotmail.com> > wrote:
: Hi,

: I am not sure which newsgroup is right for this message … i think this one
: is so.
: the version of grep/egrep for QNXRTP does not support -r (recursive) option.
: is it a porting issue ? or there is something i am missing ? whatever it is
: this is slowing me down. any suggestions regarding this issue are welcome.

‘-r’ is GNU Grep feature, but compiling GNU Grep should be an uneventfull
adventure.

The only trouble were config.sub/guess in the GNU/Grep distribution
are outdated. So get
wget > ftp://ftp.gnu.org/gnu/config/config.guess
wget > ftp://ftp.gnu.org/gnu/config/config.sub
wget > ftp://ftp.gnu.org/gnu/grep/grep-2.4.2.tar.gz

gzip -dc grep-2.4.2.tar.gz |tar xvf -
cd grep-2.4.2
cp newconfig/config.guess .
cp newconfig/config.sub .
./configure
make
make check
make install

if you can not have the newest config.sub/guess try
./configure --host=i386-svr4
That should keep configure happy.

Best of luck.

: thanks,
: ankur


au revoir, alain

Aussi haut que l’on soit assis, on n’est toujours assis que sur son cul !!!


BR, Andrej

Previously, Ankur Bhargava wrote in qdn.public.porting:

Hi,

I am not sure which newsgroup is right for this message … i think this one
is so.
the version of grep/egrep for QNXRTP does not support -r (recursive) option.
is it a porting issue ? or there is something i am missing ? whatever it is
this is slowing me down. any suggestions regarding this issue are welcome.

If you can’t get the GNU grep to work, you may be able to work around the
problem by doing the following:

cd to top directory that you want to search
run “find . -type f | xargs grep PATTERN”

Hope that helps.

  • PDM