[TriLUG] AWK for titlecase?

Ken MacKenzie ken at mack-z.com
Fri Mar 14 21:43:02 EDT 2014


Someone wrote it for you:

http://www.pement.org/awk/titlecase.awk.txt

Are you trying to do one file or a batch of files?

In the former you could do a regex replace in VIM.


On Fri, Mar 14, 2014 at 9:37 PM, Steve Litt <slitt at troubleshooters.com>wrote:

> Hi all,
>
> Before I put my nose to the grindstone and figure it out, does anyone
> know offhand how one converts a string to title case (first letter of
> each word capitalized) in AWK (gawk, specifically)?
>
> Whether I get the answer here or figure it out, I'll let you know the
> answer.
>
> Thanks,
>
> SteveT
>
> Steve Litt                *  http://www.troubleshooters.com/
> Troubleshooting Training  *  Human Performance
> --
> This message was sent to: Ken M. <ken at mack-z.com>
> To unsubscribe, send a blank message to trilug-leave at trilug.org from that
> address.
> TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug
> Unsubscribe or edit options on the web  :
> http://www.trilug.org/mailman/options/trilug/ken%40mack-z.com
> Welcome to TriLUG: http://trilug.org/welcome
>


More information about the TriLUG mailing list