Skip to content

Commit f0a12de

Browse files
Added function TitleCaseConverter
1 parent f7f3e1c commit f0a12de

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bash_aliases

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,10 @@ function has_files() {
529529
return "${retval}"
530530
}
531531

532+
function TitleCaseConverter() {
533+
printf "%s" "$1" | sed 's/.*/\L&/; s/[a-z]*/\u&/g'
534+
}
535+
532536
# Sourcing Operating System Specific bash_aliases
533537
if [ -f ~/.bash_os_aliases ]; then
534538
# shellcheck source=/dev/null

0 commit comments

Comments
 (0)