public inbox for linux-newbie@vger.kernel.org
 help / color / mirror / Atom feed
From: Robin Doer <robin@robind.de>
To: n  mishra <mishra_nn@rediffmail.com>
Cc: linux-newbie@vger.kernel.org
Subject: Re: Search tool
Date: Fri, 28 Feb 2003 09:50:07 +0100	[thread overview]
Message-ID: <200302280950.07497.robin@robind.de> (raw)
In-Reply-To: <20030227190533.9852.qmail@webmail17.rediffmail.com>

> I am trying to write a program in c to be able to search a file
> for any pattern which will be given by the user at
> runtime.Basically a search tool.
> Could someone suggest a good way of doing this.I've heard of lex
> and yacc and also awk.Which one is better or is there any other
> option.

Indeed. 
Some days ago there was a discussion in the ML "File name with spaces" - go 
through a filesystem and make something. You can use use this as input.

> Or is there any way i can use something like grep through a 'c'
> program.

Check the manpages of opendir, readdir... and regex

Good look,
Robin
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

      reply	other threads:[~2003-02-28  8:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-27 19:05 (unknown) n  mishra
2003-02-28  8:50 ` Robin Doer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200302280950.07497.robin@robind.de \
    --to=robin@robind.de \
    --cc=linux-newbie@vger.kernel.org \
    --cc=mishra_nn@rediffmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox