Mike is a kind of a geek

I'd better write this stuff down someplace...

2010-11-01

to title case, at the shell

This filter turns the input into "Title Case".

cat [whatever] \
| sed 's/.*/\L&/; s/[a-z]*/\u&/g'

Courtesy of this post.
Posted by Mike at 23:47
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2016 (1)
    • ►  October (1)
  • ►  2015 (1)
    • ►  September (1)
  • ►  2014 (1)
    • ►  September (1)
  • ►  2013 (2)
    • ►  October (1)
    • ►  August (1)
  • ►  2012 (3)
    • ►  September (2)
    • ►  August (1)
  • ►  2011 (10)
    • ►  December (1)
    • ►  September (1)
    • ►  July (2)
    • ►  April (1)
    • ►  March (2)
    • ►  February (1)
    • ►  January (2)
  • ▼  2010 (12)
    • ▼  November (1)
      • to title case, at the shell
    • ►  August (1)
    • ►  May (1)
    • ►  April (1)
    • ►  March (4)
    • ►  February (4)

About Me

My photo
Mike
View my complete profile

Search This Blog

Powered by Blogger.