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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.