• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 601
  • Last Modified:

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 ...


0
basirana
Asked:
basirana
1 Solution
 
omarfaridCommented:
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

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now