Re: [SLUG] mplayer and symbols in file name

From: Chad Perrin (perrin@apotheon.com)
Date: Tue May 11 2004 - 12:38:47 EDT


Paul M Foster wrote:

>That's true for double-quotes, but not for single-quotes. That is:
>
>something "$ANYTHING"
>
>would fetch the value for the variable ANYTHING and insert that into the
>quoted string. But
>
>something '$ANYTHING'
>
>would assume that $ANYTHING is a string literal. Backticks (`) behave
>similarly to double-quotes, but execute what lies inside the
>backtick-quoted string. This is usually used in assigning variables, as:
>
>DATE=date
>NOW=`$DATE +%Y-%m-%d`
>
>would yield:
>
>2004-05-11
>
>An alternate way to execute something (besides backticks) is:
>
>NOW=$($DATE +%Y-%m-%d)
>
>And you can do integer math by using double parentheses:
>
>$ SUM=$((3 + 2))
>$ echo $SUM
>$ 5
>
>(More than you wanted to know, right?) ;-}
>

Actually, no. Thanks for the info. It's more like perl than I
expected, actually . . .

-- 
Chad Perrin

----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 18:06:32 EDT