Search Results

Search: Posts Made By: damansingh
30,711
Posted By damansingh
Thanks a ton for the trick matrixmadhan.
Thanks a ton for the trick matrixmadhan.
30,711
Posted By damansingh
It doesnt work Nilesh !! It produces a zero...
It doesnt work Nilesh !!
It produces a zero byte file and the entire output is given as stdio only...

Must be some other way to do so ....
30,711
Posted By damansingh
xmllint output to a file
Hello All,
I have an XML file which has some errors in its tag definition according to an xsd. When i validate this xml file against an xsd, i wish to only take the errors in a file and not the...
26,315
Posted By damansingh
Rounding off to the next whole number
Hello,
I searched a lot on this Forum.
Please help me with the below problem.

I want to divide two numbers and the result should be the next nearest whole number.

E.G. Dividing 10.8/5 ideally...
2,564
Posted By damansingh
Hi, Can anyone please help me ?
Hi,
Can anyone please help me ?
2,564
Posted By damansingh
selecting only few lines from many based on a common pattern
Hi,
I have a file having some thousand records with the following sort of lines:

Error: Failed to get order data
Order: PO-BBBTGZE
Error: No CLI
Error: Failed to get order data
Order:...
10,301
Posted By damansingh
Thanks Franklin, it worked!!! aju_kup, ...
Thanks Franklin,

it worked!!!

aju_kup,
I was seeking the upper integer i.e. the floor of any floating point value.

Thanks to both of you for your valuable help.!!!!
:)
10,301
Posted By damansingh
Sure friend, rowCountEntered=98 ...
Sure friend,

rowCountEntered=98
totalRowCount=1000

numberOfFilesGenerated=`echo $totalRowCount $rowCountEntered | awk '{print $1/$2}'`

echo $numberOfFilesGenerated
10.20

Instead of...
10,301
Posted By damansingh
Hi aju_kup, Thanks for replying. typeset...
Hi aju_kup,
Thanks for replying.

typeset -i var
var=100.500
echo $var

When i try your suggestion, it gives me an error which is:
check4.sh: line 2: 100.500: syntax error in expression...
10,301
Posted By damansingh
Rounding off the value of Floating point value
Hello,

i have some variables say:
x=1.4
y=3.7

I wish to round off these values to :
x = 2 (after rounding off)
y = 4 (after rounding off)

I am stuck.
Please help.
4,153
Posted By damansingh
shell script receiving variable and doing mathematical function
Hello,

Please help for the following scenario:
1. Shell Scipt should receive 2 variables values (say a and b).
2. Within shell script, there should be division of those numbers (a/b).
3. The...
Showing results 1 to 11 of 11

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