why does this simple counter fail?
Gary Kline
kline at thought.org
Sat Mar 26 04:56:43 UTC 2011
On Sat, Mar 26, 2011 at 02:30:09AM +0100, Polytropon wrote:
> On Fri, 25 Mar 2011 21:12:08 -0400, Brad Mettee <bmettee at pchotshots.com> wrote:
> > Gary Kline wrote:
> > > I'M trying to decide whether to tatoo this on my forehead or
> > > just make a note in my ~/.notes file for the next time this
> > > breaks. if/when. Meanwhile, the best thingt to do would simply
> > > write a script to turn <? into <?php .... Never know when I'll
> > > get into things like <?xml or whatever.
> > >
> > If you do the <? into <?php, don't forget to do <?phpphp into <?php too.
> > Otherwise you'll likely corrupt already good tags.
>
well, i have a C skeleton that i could modify, but yours below
looks vastly simpler. how would i use sed to run this against?
> With 's/<\?$/<\?php/g' and sufficient quoting,
> maybe removing extra spaces, it should be fine. :-)
>
ha! doubt if i hv any spaces after <?php. too lazy;)
-g
>
>
> --
> Polytropon
> Magdeburg, Germany
> Happy FreeBSD user since 4.0
> Andra moi ennepe, Mousa, ...
--
Gary Kline kline at thought.org http://www.thought.org Public Service Unix
Journey Toward the Dawn, E-Book: http://www.thought.org
The 7.98a release of Jottings: http://jottings.thought.org
More information about the freebsd-questions
mailing list