Ubuntu Pastebin

Paste from 1 at Fri, 18 Sep 2015 11:43:42 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
function lowerCase ()
{
	if [[ $(expr "$1" : '\([0-9]\)') == "2" ]]
		then
		echo "$1"
		return $( echo $1 | sed 's/\(\S\+[A-Z]\)2\(\S\+[A-Z]\)/\L\u\1\E2\L\u\2/' )
	else
		echo "$1"
		return $(echo $1 | sed 's/\(\S\+\)/\L\u\1/')
	fi
}
Download as text