Nestling `


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Nestling `
# 1  
Old 03-30-2008
Nestling `

Anybody have any ideas?

I'm trying to do the following

The problem I'm having is nestling the ` ` to evaluate something. How can you use an evaluate within an evaluate?

echo "../mhisto `f=xa.txt;s=` some commands in here ` ` "
# 2  
Old 03-31-2008
With bash and ksh the evaluations can be nested :
Code:
echo "../mhisto $(f=xa.txt;s=$( some commands in here ) ) "

Jean-Pierre.
# 3  
Old 03-31-2008
in short, backticks (ie, ` ) have been deprecated in favor of the more visible $( ) usage...
# 4  
Old 04-10-2008
Quote:
Originally Posted by RichieFondel
Anybody have any ideas?

I'm trying to do the following

The problem I'm having is nestling the ` ` to evaluate something. How can you use an evaluate within an evaluate?

echo "../mhisto `f=xa.txt;s=` some commands in here ` ` "
You can use the escape character '\' (backward slash) before the grave-accent character in order to have nesting (i.e) "\`"
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question