Find the answer to your Linux question:
Results 1 to 4 of 4
I'm an early beginner in scripting, but I've been asked to do some for a job. I've been given some scripts to work with in csh but I need to ...
  1. #1
    Just Joined!
    Join Date
    Sep 2009
    Posts
    5

    csh to bash syntax conversion

    I'm an early beginner in scripting, but I've been asked to do some for a job. I've been given some scripts to work with in csh but I need to make them bash-friendly. I'm getting these "bad substitution" errors for the following syntax:

    ${?TARGET_CPU}

    I've figured out what the syntax means in csh, but I'm having a really hard time finding the equivalent in bash. Any insight or suggestions would be greatly appreciated

    Thanks,
    Ashley

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Time to invest in some bash-for-beginners books. There are a number available, and quite a bit of online documentation as well. Remember, google is your friend! You have way too much to learn to ask all of your questions here. Once you have a handle on your basic problems, then come back here with questions you haven't been able to resolve yourself first.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Sep 2009
    Posts
    5
    Oh gee, what's Google? You know, somehow I managed to stumble my way into a Linux forum to ask my questions but didn't know to Google them first. I'm not an idiot, yes I know how to google things and look up bash tutorials, but the specific conversion I was looking for was quite difficult to find. Sorry to bother you with my problems. I asked for help or suggestions, not your condescending bs. In the future, spare me.

  4. #4
    Just Joined! cfajohnson's Avatar
    Join Date
    May 2007
    Location
    Toronto, Canada
    Posts
    52
    Quote Originally Posted by AshleySummy View Post
    I'm an early beginner in scripting, but I've been asked to do some for a job. I've been given some scripts to work with in csh but I need to make them bash-friendly. I'm getting these "bad substitution" errors for the following syntax:

    ${?TARGET_CPU}

    I've figured out what the syntax means in csh, but I'm having a really hard time finding the equivalent in bash.

    What does it mean in csh?

    Like most people who write scripts, I don't use csh, but if you tell us what it does, we may be able to help.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...