954,525 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Quoting

hello all


i m new to shell scripting.i have seen th code substitution like

a=`ls -l`

and
a=23
R=$(a/23/bb)


first time we use ` ` and second time we use $ .
can anyone tell me Why so?

manish250
Junior Poster in Training
88 posts since Aug 2008
Reputation Points: 10
Solved Threads: 1
 

the back ticks (`) imply run the command inside and put the results here and the $ implies the next thing is a variable.

rch1231
Posting Shark
959 posts since Sep 2009
Reputation Points: 119
Solved Threads: 142
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: