shell scripts questions

Discussion in 'General Linux' started by OlgaD, Aug 13, 2014.

  1. OlgaD

    OlgaD New Member

    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Hi all,
    I am trying to figure out the shell scripts,would you mind help to figure it out ?the shells that I am unable to make it clear is listed as below:
    ?r=$REPOSITORY\
    &g=$GROUP_ID\
    &a=$ARTIFACT_ID\
    &v="$ARTIFACT_VERSION"\
    my questions are:
    1,what is function of the metacharacter "?" and "&";
    2.what is the meaning of the variable listed above?
    appreciated~

  2. rstanley

    rstanley Member

    Messages:
    73
    Likes Received:
    43
    Trophy Points:
    18
    What Distro are you using?
    What shell are you using?
    (Run `echo $SHELL`)
    Is this "shell script" part of a package?
    If so, which one?
    In addition, what is the first line of the file, the "SheBang" For example:
    Code:
    #!/bin/bash
    (Or .../php, .../perl, .../etc...)
    Any other specific information you can provide would help.
    Last edited: Aug 13, 2014
  3. OlgaD

    OlgaD New Member

    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Hi rstanley,
    thanks for your reply.actually,it is part of a shell scripts.I already figured it out.
    thanks you for taking time out.

Share This Page