Search Results

Search: Posts Made By: Dastard
2,903
Posted By Dastard
example of output is <Node>Voice ...
example of output is

<Node>Voice
<Condition>TeleServiceCode
<Code>0</Code>
</Condition>
<Node>ShortCode1
<Node>Voice Short Code_1700
<Condition>NumberList
<Type>0</Type>...
2,903
Posted By Dastard
<Node> is just a pivoting point in text , it isnt...
<Node> is just a pivoting point in text , it isnt that important
well lemme explain it again :)
i have this line in my input file

<Price>12.65</Price>

I want to 12.65 of this multiplied by 6%...
2,903
Posted By Dastard
Thanks a lot for your reply but i have confirmed...
Thanks a lot for your reply but i have confirmed that i have to calculate every price , given below code is working fine , its giving me new prices with correct values
i just want these values to be...
2,903
Posted By Dastard
ok now , since column2 value is some fraction...
ok now , since column2 value is some fraction multiplied by column1 value
so i have calculated it
now i all i want is to replace <Price> , which newly calculated price , code is given below
...
2,903
Posted By Dastard
Ok i have extracted out the price with this code...
Ok i have extracted out the price with this code , now all i need is comparison and replacement

#!/bin/sh
nawk -v Node '
/^<Price>/ {
split($0, a, ">");
split(a[2], b, "<");
...
2,903
Posted By Dastard
AWK script help required
Hello every one
i have a very long file 'file1' like this


<K>1</K>
</Condition>
<Tariff>Rate
<Price>1.27</Price>
<Interval>30</Interval>
</Tariff>
</Node>
<Node>NonFaF
<Tariff>Rate...
9,598
Posted By Dastard
Thanks :D , for your help one last thing , i...
Thanks :D , for your help
one last thing , i have this kinda text in my file

9
2
3
2
1
4
8
0
5
7
9
6




9
9,598
Posted By Dastard
Floating Division in Linux
Hi everyone , have a great day
given below is the excerpt of code

k=`grep -i success /var/seamless/spool/tdr/ERS_$date1$time1* | wc -l`;
l=`grep -i fail /var/seamless/spool/tdr/ERS_$date1$time1*...
3,857
Posted By Dastard
Worked :D:D Thanks a bunch
Worked :D:D
Thanks a bunch
3,857
Posted By Dastard
k =`grep -i success...
k =`grep -i success /var/seamless/spool/tdr/ERS_200804$date1$i* | wc -l`
echo $k
done

i have added -x for debug , not it is calculating value of k , but its not echoing it , what could possibly...
3,857
Posted By Dastard
Linux Script help
Hi Everyone , have a nice day
given below is a simple linux script
but its first part is not working ( variable k assignment ) , while second loop is working fine
can anyone help me out with this...
3,020
Posted By Dastard
-r: is not an identifier #!/bin/sh while...
-r: is not an identifier

#!/bin/sh
while IFS= read -r EachLine
do
#echo $EachLine
if $EachLine = 'rTCCreditControlRecord'; then
count = count + 1
fi
if count -eq 7172; then ...
3,020
Posted By Dastard
Not working , meanwhile i have tried something...
Not working , meanwhile i have tried something like this

while IFS= read -r EachLine
do
'echo $EachLine
if $EachLine = 'rTCCreditControlRecord'; then
count = count + 1
fi
if...
3,020
Posted By Dastard
Extracting specific block
Hi Everyone , have a great day

i have a file which has almost 20,000 blocks each starting with this particular line " rTCCreditControlRecord " , how can i bring out the 7172 block out of that file...
6,106
Posted By Dastard
Thanks its working like charm but would just...
Thanks its working like charm

but would just describe this code line by line , so that i don need to tele the whole output , whould just analyze code and this would be enuff to make sure that...
6,106
Posted By Dastard
File filter
Hi Everyone , have a nice
i would need a little help on this
i have file which contains blocks such as given below

<hgsdp:msisdn=923228719047,loc;
HLR SUBSCRIBER DATA

SUBSCRIBER IDENTITY...
4,370
Posted By Dastard
Reading files in directory
Hi Everyone , have a nice day
i need a help on this thing
algo is something like
in certain path like /root/user1
i have many files , i need a code which could open every file one by one and then...
4,448
Posted By Dastard
Conditional FTP
Hi Have a Nice Day
i m stuck with this quite easy task
assume that i m in certain directory and i open a ftp connection from there to some other directory and in second directory there are like so...
2,252
Posted By Dastard
thanks for your reply yes root has all access...
thanks for your reply
yes root has all access :mad:
i m googling too about it and hope that someone will come up with some solution
Regards
2,252
Posted By Dastard
Password on File
hi , have a nice day

i need some help on this , lets suppose i have a script at certain path , i can set its attributes with chmod but since me and all my colleagues have "root" access on that...
18,744
Posted By Dastard
no one :confused:
no one :confused:
18,744
Posted By Dastard
Well debugged it a little though #!/bin/sh ...
Well debugged it a little though

#!/bin/sh
echo "Input file Name: "
read file


( sleep 1
echo "LOGIN:user:password;";
sleep 1
cat $file | while read LINE
do
echo...
18,744
Posted By Dastard
Execute Loop in Telnet
hi Everyone , have a nice day

#!/bin/sh
( sleep 1
echo "LOGIN:username:password;"
sleep 1
while IFS= read -r line
do
#echo $line
GET:VOUCHERDETAIL:VoucherSerialNumber,$line; >>...
1,613
Posted By Dastard
Well here is the text of test2 ...
Well
here is the text of test2

2007-05-31-0000,0,0,537,538,489,490,0,0,0,0,0,0,46,46
2007-05-31-0001,0,0,552,552,489,489,2,2,0,0,0,0,60,60
2007-05-31-0002,0,0,526,526,482,482,0,0,0,0,0,0,43,43...
1,613
Posted By Dastard
Help with code
Dear Gurus , kindly take a look at this code

#!/bin/bash
declare -i total=0
declare -i frst=0
hr=`cat test2 | head -1 | cut -b12-13`
#echo $hr
for name in `cat test2`
do
hour=`echo $name |...
Showing results 1 to 25 of 47

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