How To: Convert Text Following Title Case Rules in Bash
How to convert string to title case while following rules , not just simply capitalizing every first letter of the word? Sample rule: Capitalize all words, with exception to: Lowercase all articles (a, the), prepositions (to, at, in, with), and coordinating conjunctions (and, but, or) Capitalize the first and last word in a title, regardless of part of speech Any easy way to do this in bash? One-liners appreciated. (And just as an additional note, this is to be used in parcellite actions.) $ cat titles.txt purple haze Somebody To Love fire on the mountain THE SONG REMAINS THE SAME Watch the