• Variables

    • $name    : substitute value of local (defined within the script) or environment variable (defined in the user's login shell).

    • set name = value    : where value maybe numeric (integer) or character string, and in fact may be another variable




    Examples:


    set i=0
    set j = 1
    set k = "03"

    set inp = "$1"
    set out = "$2"
    set ext = "$3"

    set bla = "$inp$k"
    set foo = $inp$k


    and:

    \cp -p $inp$1$ext $out$2$ext