Click to See Complete Forum and Search --> : grep , sed or awk


ziox
01-03-2005, 08:01 PM
HellO...

how can i grep a specific string ???
i want to grep something like this <whatIwant> i want this only So
i tried
grep -o "\<*\>" file > tofile Didn't work
grep -o "<*>" file > tofile Didn't work also
i want to grep just words between this '<' and this '>' symbols

grep,sed or awk all any ...

gehidore
01-03-2005, 08:20 PM
Originally posted by ziox
HellO...

how can i grep a specific string ???
i want to grep something like this <whatIwant> i want this only So
i tried
grep -o "\<*\>" file > tofile Didn't work
grep -o "<*>" file > tofile Didn't work also
i want to grep just words between this '<' and this '>' symbols

grep,sed or awk all any ...

I seem to remember a similar post (that was closed) that looked like this:

HellO...
-What if i want to extract e-mails from a very long file and they are written like this...
xxxx zzzz <anything@anywhere.com>, qqq www. <nbnbn@oioioi.org>, any zini < z
ioni@nini.net>
Messy , and some of them between <> and some not ....
and so on ...
-And what about if i 've them listed like that.....
zxzxz@bbb.com
zxzxz@bbb.com
zxzxz@bbb.com and i want to add a comma ',' between them to send the whole
list of mails....

-Another Question....is there any software under linux for collecting e-mail addresses
from the Internet ..??....
thank you...

makes me wonder...

flukshun
01-03-2005, 09:47 PM
Originally posted by gehidore
I seem to remember a similar post (that was closed) that looked like this:



makes me wonder...

haha. no soup for joo!

psi42
01-04-2005, 03:43 AM
People these days...