Search Results

Search: Posts Made By: barath
2,240
Posted By ctsgnb
Check this link...
Check this link (http://stackoverflow.com/questions/11045399/print-every-leaf-path-of-a-tree-without-recursive) as well as this one...
2,240
Posted By Chubler_XL
Using awk: awk -F'`~' ' function...
Using awk:

awk -F'`~' '
function from(n,pre,i,v,x)
{
if(n in T) {
v=split(T[n],x,",")
for(i=1; i<=v;i++)
from(F[x[i]], pre "~" L[x[i]]);
} else print...
3,860
Posted By CarloM
As you've noted, you need to quote the string to...
As you've noted, you need to quote the string to supply a pathname containing spaces. The same still applies when you're using a variable.

cat "$(eval echo \"$line\")"Technically, the extra quotes...
3,860
Posted By RudiC
eval cat \"$line\"
eval cat \"$line\"
3,860
Posted By CarloM
You can force the shell to re-evaluate a string...
You can force the shell to re-evaluate a string using eval, e.g.:
cat $(eval echo $line)
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 12:47 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy