To ask what "meaning" a character has depends on the context it's found in, because they can have different uses in different situations.
But in the shell, the "
$" nearly always refers to a parameter expansion or substitution of some sort.
The most common use is for variable expansion. If you have a variable set, then placing "
$" in front of the variable name substitutes the value of the variable, as shown in the several examples above.
Other common uses include process substitution
[$(..)] and math substitution
[$((..))].
It is also traditionally used as the default command prompt -- the first character on the line indicating where a command can be typed. You will see this in most shell coding examples on the net and elsewhere. Examples below:
Code:
$ wget "$( grep -Eo 'http://foo.com/[^"]+.jpg' <file.html )"
<wget output here>
$ echo "$(( 12 * 5 + 8 ))"
68
The first command searches "file.html" for all ".jpg" urls in it that start with "http://foo.com", and inserts them into the
wget command, which then attempts to download them.
Other commands and programming languages, such as
awk or perl, will often use the same characters, but in different ways. That makes learning how to properly use
shell quoting very important when running them in the shell.
There are any number of beginning shell scripting tutorials on the net. Try out a few of them.
The Bash Guide For Beginners is usually a good place to start:
http://tldp.org/LDP/Bash-Beginners-G...tml/index.html
And finally,
man bash is always the first place you should look when you have syntax questions. It's a long document, but well worth reading from end to end at least once (although I recommend first learning the scripting basics elsewhere before doing so).