LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   What is use of backtick ` character in scripting (https://www.linuxquestions.org/questions/linux-newbie-8/what-is-use-of-backtick-%60-character-in-scripting-610744/)

muazfarooqaslam 01-03-2008 02:27 AM

What is use of backtick ` character in scripting
 
Hi,

Can somebody please share the use of backtick character ` in shell scripting? I have seen this character being used widely in shell scripting but i dont know its main purpose.

Uncle_Theodore 01-03-2008 02:47 AM

`command` is the same as $(command)
bash executes command and substitues the output for the expression.
Try this

ls -l `which xterm`
ls -l $(which xterm)


All times are GMT -5. The time now is 12:32 AM.