LesOlivex

Serveis informàtics




Primera letra en mayúsculas con bash

Category : bash gen 11th, 2015
MODULO="modulo"
mayuscula=$(echo $MODULO | awk ' { out = out" "toupper(substr($0,1,1))substr($0,2) } END{ print substr(out,2) } ')
echo $mayuscula

Leave a Reply

Your email address will not be published. Required fields are marked *