Ask a Question related to SCO, Design and Development.
-
lallous #1
find string in files
Hello,
Can someone give me a simple shell script that search for a specific
string in all files ?
Same as MS Windows' "Search/Find in file" functionality.
Regards,
Elias
lallous Guest
-
How to find second occurence of a string?
Hi i am using the find function which will search the first occurence of a string. but how we can find the second or third ...occurence of the... -
Find and cut string
Hi, I'm new to PHP, so please bear with me! =) Is there a nice little function to find a string between to html-tags? I.e. let's say I have a... -
[PHP] find string
Isn't there an in_array function you can use? If (in_array($action, array(a1,a2,a3,a4)) { // do something } else { // do something else } -
find in string
How can i count the number of times a string appears within another string. Thanks a... -
find string between files
Hi all, how can I search for a specific string inside a directory (between files) ? Thanks for your help -
Jean-Pierre Radley #2
Re: find string in files
lallous typed (on Fri, Jul 25, 2003 at 11:47:07AM -0700):
|
| Can someone give me a simple shell script that search for a specific
| string in all files ?
find / -type f | xargs grep "specific string" /dev/null | less
--
JP
Jean-Pierre Radley Guest
-
Jean-Pierre Radley #3
Re: find string in files
lallous typed (on Tue, Aug 05, 2003 at 12:23:40AM +0300):
| thanks JP, it works.
|
| can you dissect and explain it please ?
Perhaps you have noticed another thread over the last four or five
days, in this newsgroup, regarding "Merge", where Tony and Bela and
I have pointed out that it is necessary to provide some context in
Usenet messages.
If you want me to explain "it", then you must tell me what "it" is.
While I pride myself on having a pretty decent memory, nothing requires
me to remember what sort of "it" I may have provided yesterday, or last
week, or last month.
It is *your* responsibilty to provide some some context, which is
satisfied by (minimal, please!) quoting of prior messages. Neither I
nor anyone else is being paid to dig through prior postings to find out
what was said in them.
As it is, your message is floating around with no references, no quotes,
no anchor, no context; it is a waste of bytes and a waste of time.
--
JP
Jean-Pierre Radley Guest
-
lallous #4
Re: find string in files
Hello JP,
You have a point....
Now I realized that your news reader doesn't show you the messages in a tree
like structure, if that wasn't the case then you could have just see your
previous post and my original post just below each other. (same as Google
Groups display)
The 'it' referes to this expression:
find / -type f | xargs grep "specific string" /dev/null | less
But nevermind though, I figured it out.
Regards,
Elias
--- Original Message ---
lallous typed (on Tue, Aug 05, 2003 at 12:23:40AM +0300):
| thanks JP, it works.
|
| can you dissect and explain it please ?
Perhaps you have noticed another thread over the last four or five
days, in this newsgroup, regarding "Merge", where Tony and Bela and
I have pointed out that it is necessary to provide some context in
Usenet messages.
If you want me to explain "it", then you must tell me what "it" is.
While I pride myself on having a pretty decent memory, nothing requires
me to remember what sort of "it" I may have provided yesterday, or last
week, or last month.
It is *your* responsibilty to provide some some context, which is
satisfied by (minimal, please!) quoting of prior messages. Neither I
nor anyone else is being paid to dig through prior postings to find out
what was said in them.
As it is, your message is floating around with no references, no quotes,
no anchor, no context; it is a waste of bytes and a waste of time.
--
JP
lallous Guest
-
Bob Meyers #5
Re: find string in files
"Jean-Pierre Radley" <jpr@jpr.com> wrote in message
news:20030804213358.GC5409@jpradley.jpr.com...Actually, I occassionally, hopefully get paid to "dig through prior> lallous typed (on Tue, Aug 05, 2003 at 12:23:40AM +0300):
> | thanks JP, it works.
> Neither I
> nor anyone else is being paid to dig through prior postings to find out
> what was said in them.
postings" :)
I tell clients comp.unix.sco.misc is my biggest trade secret. I even give
them the link and show them how to look. Fortunately most still hire me to
read it for them.
Bob Meyers Guest



Reply With Quote

