Dear Experts,
please help me out once again my array concepts is not very clear i have one text file like.
1|usa|hh
2|usa|ll
3|usa|vg
4|uk|nn
5|uk|bb
6|kuwait|mm
6|kuwait|jkj
7|dubai|hh
i want to store the third fied of a text file in he array and after that it should give me some... (6 Replies)
I am using /bin/ksh for this problem.
I have created some arrays with variable names as the array names:
cnt=1
{ while read myline; do
tempmeas="${meas%%;*}"
cto="${meas#*;}"
tempstream=$stream
# wholemeas holds the name of the array
# each array name... (0 Replies)
Hi all,
I would like to declare a vector of variables and access them sequentially.
Here is my code
ARRAY_CT="0001000000 0000100000 0000010000"
ELEMENTS_CT=${#ARRAY_CT}
echo $ELEMENTS_CT
for (( j=1;j<=$ELEMENTS_IS;j++)); do
echo ${ARRAY_IS}
done
... (2 Replies)
Hi All,
I am using the array of pointers and storing the address of string.This is a global list.
So i am using extern to give the reference of this list to another file and using reading the data from this string.
But list is being corrupted and string is missing some characters in... (2 Replies)
Hi all,
I am working in ubuntu for past few weeks .Since I was working in debian I had no problem with arrays.I followed the same method in ubuntu,but is is not working as I expected.
Name="apple"
Name="orange"
print ${Name}
Expected result is apple.But I got a error as "Bad... (8 Replies)
How would i display the output of /proc/partitions in gb representation/
Please help.
Also eager to know what is dm-0 and dm-1?
# cat /proc/partitions
major minor #blocks name
3 0 8388608 hda
3 1 104391 hda1
3 2 8281507 hda2
3 64 102400 hdb
... (7 Replies)
I've got this problem, if I modify an array in the loop and print it, everything is fine as long as I stay in the loop. But, when I print it outside the loop, nothing happens... How can I solve this problem?
Here I prepared a sample for you to see my problem;
zgrw@Rain:~$ cat test
asd
123... (4 Replies)
Hi Frnds
I need to sum up the values of a single array and store it in another variable, here is what im trying
sumArray=0
for i in ${srvcFeeAmt}
do
echo " s of i value----> "$i
sumArray=`expr $sumArray + ${i}`
done
echo "Sum of the array---->... (2 Replies)
Hi,
Im trying to count bats flying through an infrared beam array. One of the experts here helped me a few months ago but now I am having a problem that is stumping me.
here is the original code that works (with two differnt patterns in array):
# this has been changed to operate under the... (15 Replies)
Discussion started by: cmp260
15 Replies
LEARN ABOUT OPENSOLARIS
blminimum
blminmax(3TSOL) Trusted Extensions Library Functions blminmax(3TSOL)NAME
blminmax, blmaximum, blminimum - bound of two labels
SYNOPSIS
cc [flag...] file... -ltsol [library...]
#include <tsol/label.h>
void blmaximum(m_label_t *maximum_label,
const m_label_t *bounding_label);
void blminimum(m_label_t *minimum_label,
const m_label_t *bounding_label);
DESCRIPTION
The blmaximum() function replaces the contents of label maximum_label with the least upper bound of the labels maximum_label and bound-
ing_label. The least upper bound is the greater of the classifications and all of the compartments of the two labels. This is the least
label that dominates both of the original labels.
The blminimum() function replaces the contents of label minimum_label with the greatest lower bound of the labels minimum_label and bound-
ing_label. The greatest lower bound is the lower of the classifications and only the compartments that are contained in both labels. This
is the greatest label that is dominated by both of the original labels.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Committed |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO label_to_str(3TSOL), libtsol(3LIB), sbltos(3TSOL), attributes(5)NOTES
The functionality described on this manual page is available only if the system is configured with Trusted Extensions.
SunOS 5.11 20 Jul 2007 blminmax(3TSOL)