Simple use truncate in Shell
ddd="HELLO"
For converting uppercase to lowercase use tr '[A-Z]' '[a-z]'
echo $ddd | tr '[A-Z]' '[a-z]' will convert uppercase into lowercase
For converting lowercase to uppercase use tr '[a-z]' '[A-Z]'
echo $ddd | tr '[a-z]' '[A-Z]'
No comments:
Post a Comment