Re: [newbie] grep search

2002-07-28 Thread Moshe Kaminsky
Hi, You may use the find command. find allows you to go through a directory tree and perform some tests and actions on it. For example, in your case you want something like find / -path /mnt -prune -o -type f -exec grep my exp {} \; Here, the / means start in /, the '-path /mnt -prune' means

[newbie] grep search

2002-07-24 Thread Anne Wilson
Is there a way of using grep to search for a word in all directories except those under /mnt ? Anne Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com

Re: [newbie] grep search

2002-07-24 Thread civileme
Anne Wilson wrote: Is there a way of using grep to search for a word in all directories except those under /mnt ? Anne Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Well you

Re: [newbie] Grep..?

2002-07-03 Thread Moshe Kaminsky
In fact, you probably want *only* the name of the file, for which you can use grep -l ... Moshe * Jan Wilson [EMAIL PROTECTED] [020701 18:49]: * Damian G [EMAIL PROTECTED] [020701 08:46]: the command looks like this: grep -i -A 2 ~/CDs/* -e searchterm will look inside of every

Re: [newbie] Grep..?

2002-07-01 Thread Anne Wilson
On Monday 01 Jul 2002 2:42 am, you wrote: On Sun, 30 Jun 2002 22:35:02 -0300 Damian G [EMAIL PROTECTED] wrote: hi listers ... maybe my brains are working slower than usual as i think the winter caught up on me and i'm feeling kinda... dead. anyway, here's my problem: i've read

Re: [newbie] Grep..?

2002-07-01 Thread Damian G
never mind... figured it out myself. first attempt AFTER i made the post. some days you are better off not stepping out of your bed. sorry. Damian But posting the solution might help others :-) Anne ok, ;o) the command looks like this: grep -i -A 2 ~/CDs/* -e

Re: [newbie] Grep..?

2002-07-01 Thread Jan Wilson
* Damian G [EMAIL PROTECTED] [020701 08:46]: the command looks like this: grep -i -A 2 ~/CDs/* -e searchterm will look inside of every file in ~/CDs/ directory, the -i switch means 'ignore the difference between upper and lowercase' so it can find Gaim when i search for gaim , then

[newbie] Grep..?

2002-06-30 Thread Damian G
hi listers ... maybe my brains are working slower than usual as i think the winter caught up on me and i'm feeling kinda... dead. anyway, here's my problem: i've read the man page for Grep and i really can't figure out wether what i want to do is possible or not. i have a lot of backup

Re: [newbie] Grep..?

2002-06-30 Thread Damian G
On Sun, 30 Jun 2002 22:35:02 -0300 Damian G [EMAIL PROTECTED] wrote: hi listers ... maybe my brains are working slower than usual as i think the winter caught up on me and i'm feeling kinda... dead. anyway, here's my problem: i've read the man page for Grep and i really can't

Re: [newbie] grep -r *.c doesn't find files

2001-08-24 Thread Jan Wilson
* George Petri [EMAIL PROTECTED] [010824 21:11]: I notice that grep -r *.c doesn't recurse through all folders (unless, of course, they're called something.c). How do I tell grep to recurse through ALL subfolders and find .c files? grep -r *.c should recurse through directories to find

Re: [newbie] grep -r *.c doesn't find files

2001-08-12 Thread David E.Fox
On Sunday 12 August 2001 06:44 am, George Petri wrote: Surely, grep can do something this basic, can't it (didn't the author of grep write c programs too:)? I don't like find and its complexity very much. Recall that the tools in Unix are (or at least were at one point) designed to do one

Re: [newbie] GREP

1999-10-23 Thread Ernest N. Wilcox Jr.
The grep command is a search tool for the command line. You can use it to fild specific strings in selected files etc. To learn about grep use the man command as in "man grep" (without the quotes). The man pages are a little criptic, but with a little practice and carefull reading, you can find a

Re: [newbie] GREP

1999-10-22 Thread BryanMoorehead
OTECTED] on 10/22/99 12:04:30 PM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: Bryan Moorehead/Link/Allied Holdings) Subject: [newbie] GREP Does anybody know what the grep command do?

Re: [newbie] GREP

1999-10-22 Thread Ribbo
On Fri, Oct 22, 1999 at 10:04:30AM -0600, Shannon M. Johnston said: Does anybody know what the grep command do? $ man grep ... DESCRIPTION Grep searches the named input files (or standard input if no files are named, or the file name - is given) for lines containing a match to the given

Re: [newbie] GREP

1999-10-22 Thread John Aldrich
On Fri, 22 Oct 1999, you wrote: Does anybody know what the grep command do? Searches, essentially. For example, type the following at a command prompt: rpm -qa | grep sendmail that will show you all the packages you have installed which have "sendmail" as part of their name. Or you can try "cat

Re: [newbie] GREP

1999-10-22 Thread John Aldrich
On Fri, 22 Oct 1999, you wrote: Does anybody know what the grep command do? For more detail type "man grep" (minus quotes) at the command prompt. :-) John

Re: [newbie] GREP

1999-10-22 Thread Michael R. Batchelor
On Fri, 22 Oct 1999, Shannon M. Johnston wrote: Does anybody know what the grep command do? grep = Global Regular Expression Processor $ grep dog filename will spew out every line in filename which contains the string "dog" Read through the docs for grep and egrep, then get the O'Rielly

Re: [newbie] grep and replace

1999-09-03 Thread Matt Stegman
Maybe this would do it (as a shell script): #! /bin/sh for $i in `find .`; do cp $i $i.old cat $i.old | sed -e "s/MarketingWorks\/Collard Associates/MarketingWorks" $i next; I am NOT a shell script guru- you can tell because my for loop syntax is wrong, and I'm not sure what

[newbie] grep and replace

1999-09-02 Thread James Stewart
Been investigating the problem I posted yesterday a bit more, and have a slightly better way of expressing it now ;) What I want to do is like issuing: grep -r MarketingWorks\/Collard Associates /home/httpd/marketingworks.co.uk but instead of listing the results I want to replace it with