Search Results

Search: Posts Made By: padarthy
1,410
Posted By padarthy
Script help
Hi,

I have written a script to move the files from child directory to parent directory. The command runs successfully at the command line. But it is giving error while executing the script.
...
23,250
Posted By padarthy
Thanks it is working now
Thanks it is working now
23,250
Posted By padarthy
Error in functions : file2: function: not found
Hi

I had written the small script for calling a function.

bash-2.03$ more file2
function sai
{
echo " this is an example"
}
echo "This is main program"
echo "calling the function"...
7,138
Posted By padarthy
how to compare big real numbers
Hi everyone,

I need to compare 2 big Floating/Real numbers in a script.

After the comparission it is showing worng values in my script.

echo "Enter value1"
read value1
echo "Enter value2"...
7,138
Posted By padarthy
how to compare big real numbers
Hi everyone,

I need to compare 2 big Floating/Real numbers in a script.

After the comparission it is showing worng values in my script.

echo "Enter value1"
read value1
echo "Enter value2"...
43,692
Posted By padarthy
Hi I am getting the error Here is the output...
Hi I am getting the error

Here is the output

bash-2.03$ ./file4
Enter value1
4568456
Enter value2
6589546
./file4: [: -eq: unary operator expected


Please correct this code

echo...
43,692
Posted By padarthy
Vino, after changing the code.. I am not...
Vino, after changing the code..

I am not getting the output .. No errors were display
43,692
Posted By padarthy
I corrected the case sensitive, Still i am...
I corrected the case sensitive, Still i am getting an error

echo "Enter value1"
read value1
echo "Enter value2"
read value2

Result=`echo $value1 > $value2 | bc `

if [ $Result -eq 1 ]...
43,692
Posted By padarthy
Hi Virmin, After excuting your code. i...
Hi Virmin,

After excuting your code. i am getting a syntax error .

echo "Enter value1"
read value1
echo "Enter value2"
read value2

Result=`echo "$Value1 > $Value2"...
43,692
Posted By padarthy
How to Compare Floating point / real numbers
Hai,

Can you please guide me, to compare the floating point numbers.

Eg.

If [ $value1 > $value2 ]
then

echo "value1 is grater "

fi

This code is not working properly when i...
2,436
Posted By padarthy
Thanks.. Expressions are working correctly...
Thanks.. Expressions are working correctly...
2,436
Posted By padarthy
No. The output of the expression will be in...
No.

The output of the expression will be in decimal format ( eg 563.655 ).

kindly advice
2,436
Posted By padarthy
Sorry yaar... Its Calculation... I am...
Sorry yaar...

Its Calculation... I am calulating the estimated size by 15 %.

Please help me
2,436
Posted By padarthy
Error in Calculating a Expression
Hi

I am trying to calulate the values with this script

/* Script will estimate the values by 15 % */

echo " Enter the directory name "
read value1
value3=`(du -k $value1 | tail -1 | awk...
3,440
Posted By padarthy
Comparing two files..
Hai,

I am new to this forum..

I am having two files for compare..

1st file contains the values... like this

sourceFile:
Filename1 1234567
Filename2 2345678
Filename3 3456789

2nd...
Showing results 1 to 15 of 15

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