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?

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