[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: [LI] Multiple pop accounts.



Dr. Sharukh K. R. Pavri. forced the electrons to say:
> > s/proc\(mail\)/fetch\1/g
> >
> 
> Hey Binand,
> 
> kindly explain the above to a newbie.
> 

That is a sed substitution command using regular expressions, and it says,
"find the sequence of letters, procmail (also, put the last part, mail,
in register number 1) and replace it with the sequence fetch, and then
the contents of register 1, and do it in a global way (ie, don't give
up after finding the first match in a line, scan the entire line for
further possible matches)".

So this will replace all occurances of procmail with fetchmail, but will
leave sequences like procedure, procure etc. alone.

Binand

-- 
#include <stdio.h>                                   | Binand Raj S.
char *p = "#include <stdio.h>%cchar *p = %c%s%c;     | This is a self-
int main(){printf(p,10,34,p,34,10);return 0;}%c";    | printing program.
int main(){printf(p,10,34,p,34,10);return 0;}        | Try it!!
--------------------------------------------------------------------
The Linux India Mailing List Archives are now available.  Please search
the archive at http://lists.linux-india.org/ before posting your question
to avoid repetition and save bandwidth.