Is there any way to do variable nesting using sh?
For example:
example_1="a test string"
example_2="another test"
example_3="etc..."
i=2
echo ${example_$i}
The shell reports:
sh: ${example_$i}: bad substitution
If not, maybe someone could suggest another method. Thanks in... (3 Replies)
Hi, I bought a module called "Price comparison listing" for Prestashop that was supposed to help me push product listing to kelkoo. Unfortunately it doesnt work and the developers don't fix, and they don't refund.... I have reported this to prestashop, but I need a solution..
Be careful buying... (1 Reply)
Hi there,
I have nested case in my script. I am asking user, want to continue? if user press y/Y then my inner case should continue, rather than that my code start from beginning. I would like to continue my inner case until user press n or N. Is any one tell me how can I do?
Thanking You,... (2 Replies)
Hi Team,
I just want to check whether my nested if loop used is correct or not.
if ]
if ]
export1
else
export2
fi
else
if ]
export3
else
export4
fi
fi
Thanks
Shiva (5 Replies)
HI everyone,
I am not able to find error in the script, when i run the script till
line No. 20
i.e, read var4
everything runs fine. After that the script exits out.
#!/bin/bash
echo -e "Want dryrun OR merge: \n "
read var1
if ] ; then
echo -e "\n Please select from the given... (10 Replies)
for server in $(echo `cat /tmp/ScanHosts_${USERSNAME}.TXT`)
do
for portnumber in $(echo `cat /tmp/ScanPorts_${USERSNAME}.TXT`)
do
#echo ${server} ${portnumber}
... (3 Replies)
Hi,
i m trying to create script which logic is like below.
if ; then
x=`cat /tmp/testoutput.log | grep STOP | wc -l`
y=`cat /tmp/testoutput.log | grep RUN | wc -l`
if ; then
echo "process stop"
if ; then
echo "process running "
else
echo "file not found"
fi
----------------... (2 Replies)
Discussion started by: tapia
2 Replies
LEARN ABOUT SUSE
sage
sage(3) Library Functions Manual sage(3)NAME
sage - The SDL library for OpenGL extensions.
DESCRIPTION
#include <sage/sage.h>
Sage is a small C library providing Open GL extensions to applications using SDL. It has been automatically generated from the glext.h
header file from the OpenGL website. The Sage source package comes with the Perl scripts to generate new sources from updated glext.h
files.
Additionally, it provides a way of accessing the standard GL and GLU headers in a cross platform method. sage/GL.h and sage/GLU.h should be
used in place of gl/GL.h and gl/GLU.h (or the equivalent on other platforms.)
To use Sage, an application must first call sage_init once the OpenGL context has been created. This checks for the existence of each
extension it knows about and links up the appropriate function pointers. The array sage_ext sets each exension that is found to 1, and 0
otherwise. Applications should check the existence of the extension in sage_ext before using it.
Extensions can then be used by their name as defined in the spec.
BUGS
Sage does not check to see of the OpenGL context is valid.
On some systems, the standard Open GL header causes problems with sage (namespace conflicts).
Apparently some broken GL implmentations may report the existence of an extension, but not actually provide it. Sage will not detect this.
AUTHOR
Simon Goodall (simon (at) simongoodall.co.uk)
SEE ALSO sage_init(3)
September 22, 2005 sage(3)