Samuel Flory staggered into view and mumbled: > Lorenzo Prince wrote: > > >Hmm. Try the following if you want to search within a specific directory: > > > >for f in /directory/*; do grep "text" $f; done > > > >or you can omit /directory/ if you want to search the current directory, > >so the command would look something like this: > > > >for f in *; do grep "text" $f; done > > > >I think this will do what you need it to do. > >HTH. > > > > > That's a little complex why not grep "some text" /directory/* > > Or grep -r "some text" /directory if you want to search all of the files > in any directorys within a directory.
Cool. Thenks. I actually didn't realize that grep could search multiple files without having to do some scripting. ;) Lorenzo Prince happy Shrike user ;) -- "[In 'Doctor' mode], I spent a good ten minutes telling Emacs what I thought of it. (The response was, 'Perhaps you could try to be less abusive.')" (By Matt Welsh) -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list