Generation

linuxSat, 12 Nov 2022

Get title case of a string

echo "test" | awk '{for (i=1; i<=NF; i++) { $i = toupper(substr($i,1,1)) substr($i,2) }} 1'

Questions about programming?Chat with your personal AI assistant