Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #27702
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2012-08-23 00:34 -0700 |
| References | <CAE7MaQbrdVbbFWDJ8GHuoybT2SNPfZyyMFU_beBc_zMKpBHPFg@mail.gmail.com> <mailman.3643.1345631321.4697.python-list@python.org> |
| Subject | Re: help me debug my "word capitalizer" script |
| From | John Ladasky <john_ladasky@sbcglobal.net> |
| Message-ID | <mailman.3696.1345707275.4697.python-list@python.org> (permalink) |
On Wednesday, August 22, 2012 3:28:18 AM UTC-7, Kamil Kuduk wrote:
> less file.txt | sed -e "s/\b\([a-z]\{4,\}\)/\u\1/g"
Say what?
Yes, you could do a crazy regex at the Linux prompt. But... will you be able to retain that insane syntax in your head until the NEXT time you need to write something like that? Probably not, unless you write awk all day.
That, ladies and gentlemen, is why there's Python.
I stopped programming for about 18 months a while back. When I came back to Python and needed to do it again, I picked up right where I left off.
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: help me debug my "word capitalizer" script Kamil Kuduk <kamil.kuduk@gmail.com> - 2012-08-22 12:28 +0200 Re: help me debug my "word capitalizer" script John Ladasky <john_ladasky@sbcglobal.net> - 2012-08-23 00:34 -0700 Re: help me debug my "word capitalizer" script John Ladasky <john_ladasky@sbcglobal.net> - 2012-08-23 00:34 -0700
csiph-web