String2 contains an invalid character class

Posted on 2008-11-20
Last Modified: 2012-05-05
We are having following line in shell scripts which is giving error

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

tr: String2 contains an invalid character class.

Any help ...

Question by:basirana
    LVL 40

    Accepted Solution


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

    Expert Comment

    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"

    Author Closing Comment

    Thank you

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Join & Write a Comment

    Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
    Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
    This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now