String2 contains an invalid character class

We are having following line in shell scripts which is giving error

Line
------
 echo "\nEnter ` echo TAM | tr [:lower:] [:upper:] `'s password ... \c"

Error
------
tr: String2 contains an invalid character class.

Any help ...


basiranaAsked:
Who is Participating?
 
omarfaridConnect With a Mentor Commented:
try

echo "\nEnter ` echo TAM | tr '[:lower:] [:upper:]' `'s password ... \c"
0
 
TintinCommented:
It's completely pointless having tr in that line as it isn't doing anything.  It's a long winded way of saying

echo "\nEnter  TAM's password ... \c"
0
 
basiranaAuthor Commented:
Thank you
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.