02-03-2011
hi zaxxon,
no luck.even now it is not picking the value.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need to pass a parameter to a function in a script. My parameter is a string. When I display the parameter within my function, I only get the first word from string I pass in.
How can I make the function receive the whole string (and not terminate at the first space it encounters)?.
part of... (1 Reply)
Discussion started by: fastgoon
1 Replies
2. UNIX for Advanced & Expert Users
I need to pass a parameter to a function in a script. My parameter is a string. When I display the parameter within my function, I only get the first word from string I pass in.
How can I make the function receive the whole string (and not terminate at the first space it encounters)?.
part of... (2 Replies)
Discussion started by: fastgoon
2 Replies
3. Shell Programming and Scripting
Hi,
i have this code :
awk -v s=string_to_find 'BEGIN{
n=""
}
{
if ($0 ~ /FEATURE TESTED /)
{
n=$0
}
if (index($0,s)!=0)
{
if (n!="")
print n
n==""
}
}' $file1 > $file2 (4 Replies)
Discussion started by: kamel.seg
4 Replies
4. Shell Programming and Scripting
Hello,
Could anyone help me with some KSH syntax? I'm trying to pass a list as a function parameter in a KSH?
For example I have code like this:
print_counter() {
N=$1
C=$2
for A in $C; do
echo "This is $N number $A"
done
}
NAME=BRICK
COUNT=" 1 2 3 4"
... (2 Replies)
Discussion started by: pn8830
2 Replies
5. Shell Programming and Scripting
HI all
I have a code like
##############################################
minyear()
{
curryear=$1
echo $curryear
}
##Main Program ##
minyear
exit
#######
when i execute "sh scriptname 2005" output should be like 2005 but the output is blank.
I guess i need to pass parameter to... (3 Replies)
Discussion started by: vasuarjula
3 Replies
6. Shell Programming and Scripting
am a beginer of shell Unix, plesase tell me how to get parameter with $perl in loop
$ perl -lne '$/="DOCEND";print $_."DOCEND" if /$ACC/' file_input > output
i can't get parameter in loop with perl fucntion like this
pass paramerter to $ACC not accept in this script
$ACC = paramerter to... (4 Replies)
Discussion started by: krai
4 Replies
7. Solaris
Hi,
How to use a function with passing value as a parameter in unix ?
With Regards (7 Replies)
Discussion started by: milink
7 Replies
8. Shell Programming and Scripting
Hi guys,
can someome help with this question, I have defined a function that takes a command as a parameter, but when the command is executed from the function it will throw errors because what I believe is a special character escaping issue. I tried using the backslash to escape the pipe | and >... (2 Replies)
Discussion started by: marouanix
2 Replies
9. Shell Programming and Scripting
Hi All,
Just trying to implement the below shell script using AIX ksh shell.
myfunc {
eval "$*"
}
CMD='ls -la /etc/hosts | awk '{print $9"|"$5}''
myfunc $CMD
Keeping getting "|}: not found" errors, any pointers would greatly be appreciated.
Kind Regards
Ed
Please... (2 Replies)
Discussion started by: eo29
2 Replies
10. Shell Programming and Scripting
Hi All,
I have created one function for KSH and was running well with one parameter input since I just had to use $1 to get the parameter.
Now I want to do loop for each parameter(actually filenames) . I have try to use do loop, but $i does not resolve to parameter instead it resolves to 1,... (5 Replies)
Discussion started by: mysocks
5 Replies
LEARN ABOUT DEBIAN
details
Detail Classes(3) Coin Detail Classes(3)
NAME
Detail Classes -
Classes
class SoConeDetail
The SoConeDetail class contains information about the parts of a SoCone shape.
Instances of this class are used for storing information about hit points on cone geometry after pick operations, and for storing
information returned to tessellation callbacks. "
class SoCubeDetail
The SoCubeDetail class contains information about the parts of a SoCube shape.
Instances of this class are used for storing information about hit points on cone geometry after pick operations, and for storing
information returned to tessellation callbacks. "
class SoCylinderDetail
The SoCylinderDetail class contains information about the parts of a SoCylinder shape.
Instances of this class are used for storing information about hit points on cylinder geometry after pick operations, and for storing
information returned to tessellation callbacks. "
class SoDetail
The SoDetail class is the superclass for all classes storing detailed information about particular shapes.
Detail information about shapes is used in relation to picking actions in Coin. They typically contain the relevant information about what
particular part of the shape a pick ray intersected with. "
class SoFaceDetail
The SoFaceDetail class is for storing detailed polygon information.
Instances of this class are used among other things for storing information about polygons after pick operations, and for storing
information returned to tessellation callbacks. "
class SoLineDetail
The SoLineDetail class is for storing detailed 3D line information.
Instances of this class are used among other things for storing information about lines after pick operations, and for storing information
returned to tessellation callbacks. "
class SoNodeKitDetail
The SoNodeKitDetail class is yet to be documented.
When a pick action is executed and geometry within a nodekit is hit, the nodekit generates an SoNodeKitDetail object which contains
information about the specific part inside the nodekit hit by the pick ray. "
class SoPointDetail
The SoPointDetail class is for storing detailed information for a single 3D point.
Instances of this class are used among other things for storing information about the vertices of lines and polygons after pick operations,
and for storing information returned to tessellation callbacks. "
class SoTextDetail
The SoTextDetail stores information about a character in a string.
Instances of this class are used for storing information about hit points on textual 2D or 3D geometry after pick operations, and for
storing information returned to tessellation callbacks. "
class SoDetailList
The SoDetailList class is a container for pointers to SoDetail objects.
This list class will delete the details when destructed/truncated, or when a detail in the list is replaced by another detail. The caller
is responsible for allocating the details passed to the list, but should not deallocate them since this will be handled by the list. "
Detailed Description
Detail classes are objects that deliver additional information wherever the SoPrimitiveVertex class is used. This goes for ray picking
results, and it also goes for primitive generation by SoShape classes for the SoCallbackAction class and fallback shape rendering through
primitive generation (a useful debugging trick when debugging for instance raypicking).
Author
Generated automatically by Doxygen for Coin from the source code.
Version 3.1.3 Wed May 23 2012 Detail Classes(3)