Search Results

Search: Posts Made By: kavitha
6,089
Posted By kavitha
Calling perl modules from shell scritps
hi,

Is it possible to call a perl function from a perl module from within a shell script. I have a similar requirement.

Thanks in advance,
Kavitha
2,092
Posted By kavitha
help in bc
hi,

the following piece of code gives syntax error
vernum is got as a string value, and to convert it to floating point number, i am using

verno=$(echo "$vernum" + 0.0 | bc )

it gives the...
1,968
Posted By kavitha
help in awk
thanks,
but i hv already tried those options

both double quotes and without quotes gives the foll. error

Syntax error at line 1
awk: Field $() is not valid.
The source line number is 1
...
1,968
Posted By kavitha
help in awk
sorry the previous post got submitted before completion.

can anybody help me fix the error

Thanks in advance,
Kavitha
1,968
Posted By kavitha
help in awk
Hi,

I have used the following awk statement in my program,

.....
awk 'BEGIN{if ('$maxver'<'$verno') exit 1}'
if [ $? -eq 1 ]
then
maxver=$verno
fi
......

It is giving the following...
4,890
Posted By kavitha
Array variables
hi,

how to store array values in unix? and how to access array values?
can somebody help?

kavitha
16,141
Posted By kavitha
comparing two float values
I am trying to compare 2 float values using if

the foll code does not work

a=1.4
b=1.6

if test $a -gt $b
then
echo "$a is max"
else
echo "$b is max"
fi

does -gt work for floating...
Showing results 1 to 7 of 7

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