translate characters to upper/Lower case

while writing shell scripts sometimes in if loop we need to match the strings .we need to check
for both upper/lower cases .

converting a lower case chars to upper case:

echo "Something" | tr [:lower:] [:upper:]

converting a upper case chars to lower chars:

echo "Something" | tr [:upper:][:lower:]


No comments: