Search Results

Search: Posts Made By: ranabhavish
12,442
Posted By ranabhavish
Syntax error near unexpected token `('
I have 2 files like a.txt and b.txt and the content is as below

cat a.txt

810750125 117780 /BSCSQAT4A/bscsqat4a/lib/jar/wclt_common.jar
1803152428 13300...
946
Posted By ranabhavish
Facing problem while printing accurate decimal value
Hi,

I have a file tp.txt having below data

CE2DD,N,5055,16.12.2013,3.114,12195.89,MVR,003388,Web::00000005055,Web Payment


and i am using below code to print the values

for var_amt_pay...
1,091
Posted By ranabhavish
How to restrict the execution of same script if it is running already in nohup?
Hi,

How can i restrict the execution of same script if it is running already in nohup

Thanks
2,390
Posted By ranabhavish
How to remove characters for sql query output?
Hi,

my sql query return below value for " $SQL_OPN_AMT "


CUSTCODE OH OHOPNAMT_GL OHREFNUM -------------------------------- -- ----------- ------------------------------ OHENTDATE FCC...
5,423
Posted By ranabhavish
i got it , Thnkyou so much ..
i got it , Thnkyou so much ..
5,423
Posted By ranabhavish
Hi, below is the code i am using ...
Hi,

below is the code i am using


#!/usr/bin/bash

while read each_line
do
var_tcode=`echo $each_line | awk -F',' '{print $1}'`

done < WPA_20131120_APP0000108.csv

echo "Value::...
5,423
Posted By ranabhavish
Not able to read .csv file until open in vi editor
Hi,

I am facing a problem regarding .csv file, my script does not read .csv file and if i open this file in vi editor and perform :wq option then only my script reads the .csv file.

Thanks
11,217
Posted By ranabhavish
Dear in2nix4life...
Dear in2nix4life (https://www.unix.com/member.php?u=302031849)

but it is not working in below case, output should be "200.92" but it is giving "200.93"

#!/usr/bin/bash

a=15.42
b=13.03
...
11,217
Posted By ranabhavish
is there any sed command what can i use?
is there any sed command what can i use?
11,217
Posted By ranabhavish
Thanks but it is giving output "205.54" instead...
Thanks but it is giving output "205.54" instead of "205.55"
11,217
Posted By ranabhavish
How to round up value upto 2 decimal places using sed?
Please help me in rounding up value upto 2 decimal palces using sed command


#!/usr/bin/bash

a=15.42
b=13.33

c=`echo $a*$b |bc -l`

echo $c



above code is is giving output...
1,147
Posted By ranabhavish
i want to compare data only line by line for 2nd...
i want to compare data only line by line for 2nd field having decimal values.
1,147
Posted By ranabhavish
How compare decimal values?
I have 2 files say tp1.txt and tp2.txt having following data


cat tp1.txt
abc,2.20,IN20
acb,3.15,DN10
bca,3,RD10



cat tp2.txt
alv,1.00,IN20
aaa,4.05,DD10
abb,5.50,RD12


i want...
1,046
Posted By ranabhavish
Sorting on date basis
I have file data.txt having below data


cat data.txt

01-MAY-13 2.38.11.00.100089 IN 4512 0000741881
01-MAY-13 2.38.11.00.100089 IN 4512 0000741881
01-JUN-13 2.38.11.00.100089 FC 1514...
1,266
Posted By ranabhavish
Ok, i will follow this next time, as i was new to...
Ok, i will follow this next time, as i was new to this that's why this happened.
Thanks
1,266
Posted By ranabhavish
Plz Help in sorting the data on date basis
I have file a.txt having below data

cat a.txt
01-MAY-13 2.38.11.00.100089 IN 4512 0000741881
01-JUN-13 2.38.11.00.100089 IN 1514 0000764631
01-NOV-13 2.38.11.00.100089 IN 1514 0000856571...
1,213
Posted By ranabhavish
Plz Help in sorting the data on date basis
I have file having below data

01-MAY-13 2.38.11.00.100089 IN 4512 0000741881
01-JUN-13 2.38.11.00.100089 IN 1514 0000764631
01-NOV-13 2.38.11.00.100089 IN 1514 0000856571
01-NOV-13...
Showing results 1 to 17 of 17

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