FW: FW: [Shacs] who needs C?

Bronius Motekaitis bronius at bcswebstudio.com
Sat Mar 3 09:15:00 CST 2007


haha, yeah, that's pretty cool.
match all, selectively replace each character in the string matched with
each letter of the secret message?


On 3/2/07, PILLING, ANDREW ALEXANDER <AAP006 at shsu.edu> wrote:
>
>  How's this:
> :s/.*\(p\).*\(u\)\(l\).*\(e\).*\(i\).*\(S\).*/\U\1\2G\u \3\5\v\4\l\6!
>
>  ------------------------------
> *From:* shacs-bounces at shsu.edu [mailto:shacs-bounces at shsu.edu] *On Behalf
> Of *Bronius Motekaitis
> *Sent:* Friday, March 02, 2007 5:21 PM
> *To:* SHACS
> *Subject:* Re: FW: [Shacs] who needs C?
>
> Good one.. can you do it in fewer steps?  (without it being obvious..)
> -bronius
>
> On 3/2/07, PILLING, ANDREW ALEXANDER < AAP006 at shsu.edu> wrote:
> >
> > You mean ":s/.*/pug lives/"?
> >
> > -----Original Message-----
> > From: shacs-bounces at shsu.edu [mailto:shacs-bounces at shsu.edu] On Behalf
> > Of Jamie Isaacs
> > Sent: Friday, March 02, 2007 3:56 PM
> > To: SHACS at shsu.edu
> > Subject: Re: [Shacs] who needs C?
> >
> > On 3/2/07, Sean M. Duckett <stdsmd15 at shsu.edu> wrote:
> > > Ok, I can't resist....It's one character less to type, and substitutes
> >
> >
> > > globally.
> > >
> > > :%s/c//gi
> > > :wq
> > > --smd.
> >
> > I couldn't either:
> >
> > "And Dr. Ooper would be the chair of the CS department"
> > :s/And Dr. Oo//
> > :s/er wo//
> > :s/ld be the/g/
> > :s/cha/li
> > :s/ir of the CS d/v/
> > :s/partment/s/
> >
> >
> > You know you want to try it...
> >
> > --
> > Jamie Isaacs
> > Corrections Software
> > jamie at correctionssoftware.com
> > _______________________________________________
> > Shacs mailing list
> > Shacs at shsu.edu
> > http://lists.shsu.edu/mailman/listinfo/shacs
> >
> > _______________________________________________
> > Shacs mailing list
> > Shacs at shsu.edu
> > http://lists.shsu.edu/mailman/listinfo/shacs
> >
>
>
> _______________________________________________
> Shacs mailing list
> Shacs at shsu.edu
> http://lists.shsu.edu/mailman/listinfo/shacs
>
> _______________________________________________
> Shacs mailing list
> Shacs at shsu.edu
> http://lists.shsu.edu/mailman/listinfo/shacs
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.shsu.edu/pipermail/shacs/attachments/20070303/2cdfae36/attachment-0001.html


More information about the Shacs mailing list