Search Results

Search: Posts Made By: Aditya.Gurgaon
1,572
Posted By Aditya.Gurgaon
it is just a script ........ ---------- Post...
it is just a script ........

---------- Post updated at 02:34 AM ---------- Previous update was at 02:32 AM ----------

if i will run dis then it will gv >> , then i have run some...
1,572
Posted By Aditya.Gurgaon
after running xx.sh .this is my prompt sign...
after running xx.sh .this is my prompt sign >>
1,572
Posted By Aditya.Gurgaon
no no.ok i am expaling again..... i want...
no no.ok i am expaling again.....

i want when >> will come script will print "count "
1,572
Posted By Aditya.Gurgaon
Taking inputs on prompt
need a help to get a script:

bash # ./xx.sh
>> count
567


script will run the xx.sh and it will go to >> then run "count"
will get the result "567" and print it
2,088
Posted By Aditya.Gurgaon
cat /tmp/stat.txt MT_OTHER_PAGING 0...
cat /tmp/stat.txt

MT_OTHER_PAGING 0 MT_CALL_PAGING 5 MT_SMS_PAGING 25 MT_USSD_PAGING MT_OTHER_PAGING 0 MT_CALL_PAGING 4 MT_SMS_PAGING 2 MT_USSD_PAGING

i am running :
cat /tmp/wholeday.txt |...
2,088
Posted By Aditya.Gurgaon
making CSV
still the output is coming in one line:
MT_OTHER_PAGING,MT_CALL_PAGING,MT_SMS_PAGING,MT_USSD_PAGING
0,0,0,0,0,13,52,0,54,0,5,25,0,19,0,4,2,

it is nt coming in csv format.

---------- Post...
2,088
Posted By Aditya.Gurgaon
hi jonte Now out put is coming like : ...
hi jonte
Now out put is coming like :
MT_OTHER_PAGING,MT_CALL_PAGING,MT_SMS_PAGING,MT_USSD_PAGING
,Following,,,0,13,52,,54,0,5,25,,19,0,4,2,

all are coming in one row.........

and for null...
2,088
Posted By Aditya.Gurgaon
yes for null value i want to print 0 ...not ,, ...
yes for null value i want to print 0 ...not ,,

---------- Post updated at 09:09 PM ---------- Previous update was at 09:03 PM ----------

i want for null value ..it should print 0 not ,,
2,088
Posted By Aditya.Gurgaon
Input file is : MT_OTHER_PAGING 0 ...
Input file is :
MT_OTHER_PAGING 0
MT_CALL_PAGING 5
MT_SMS_PAGING 25
MT_USSD_PAGING

MT_OTHER_PAGING 0
MT_CALL_PAGING 4...
2,088
Posted By Aditya.Gurgaon
ouput is coming like dis...............pls help...
ouput is coming like dis...............pls help me on this....lots of , are coming and " ,Following,,," is coming.....
MT_OTHER_PAGING,MT_CALL_PAGING,MT_SMS_PAGING,MT_USSD_PAGING...
2,088
Posted By Aditya.Gurgaon
hi Jotne thank you............. but...
hi Jotne
thank you.............


but while running the script .......the result is coming like following :
MT_OTHER_PAGING,MT_CALL_PAGING,MT_SMS_PAGING,MT_USSD_PAGING,MT_SERVICE_REQ...
2,088
Posted By Aditya.Gurgaon
i have that file...which contains the value ...
i have that file...which contains the value

i need to make it CSV format.........

in csv it should look like :
MT_OTHER_PAGING MT_CALL_PAGING MT_CALL_PAGING 150 ...
2,088
Posted By Aditya.Gurgaon
no i want clomns will be printed once but the...
no i want clomns will be printed once
but the value will be diff as i have in the file
2,088
Posted By Aditya.Gurgaon
Making ths CSV
can any body help me on this:

SGSAP: MT_OTHER_PAGING 0
SGSAP: MT_CALL_PAGING 13
SGSAP: MT_SMS_PAGING 52
SGSAP: MT_USSD_PAGING
SGSAP: ...
1,184
Posted By Aditya.Gurgaon
actually i need it will go to 00 floder and pring...
actually i need it will go to 00 floder and pring SG.csv and then loop back ..and go to 01 folder then pring SG.csv
1,184
Posted By Aditya.Gurgaon
it should print all the .SG.csv which are in...
it should print all the .SG.csv which are in particular folder
1,184
Posted By Aditya.Gurgaon
Recursively Searcing file in the directories
i have directory dgf
in the dgf( some other Sub-dir are there)

00 01 02 03 04

in all the Sub directory there is a SG.csv ..

i want the scripts should run one by one Sub-dir and print the...
1,116
Posted By Aditya.Gurgaon
What is the error in this script ?
please let me know the error in following script ::::::::::


#!/usr/bin/env sh
set -x
x=0
l=0
if [ '$x -eq 0'] && [ '$l -eq 0']
then
echo "success_rate =0"
else
...
1,192
Posted By Aditya.Gurgaon
it is coming 33.00 i need 33.33 how i...
it is coming 33.00

i need 33.33

how i will do it ?
1,192
Posted By Aditya.Gurgaon
i tried it : z=$(echo "scale=4 ; ($x/$y*100)" |...
i tried it :
z=$(echo "scale=4 ; ($x/$y*100)" | bc)

bt it is giving result : 33.3300
x=1
y=3

i want 33.33
1,192
Posted By Aditya.Gurgaon
Percentage calculation
i am trying to get percentage : but not able to do it:

i tried :
x=1
y=2
z=`expr $x/$y*100`

it is not giving me result

can u pls help on this
1,084
Posted By Aditya.Gurgaon
Line concatenation help
please help me on this....
cat /xx.txt
2:1
2
2:2
24
8:0
0
9:0
0

Expected result would be
2:1 2
2:2 24
8:0 0
9:0 0
1,905
Posted By Aditya.Gurgaon
cat /tmp/vf.txt 0 0 1 61 ...
cat /tmp/vf.txt
0 0
1 61
2 767

i need to print only 61.......how i will do it........
and
i need to print 0 ......
pls give me a code for this
1,905
Posted By Aditya.Gurgaon
thanks for your help....... Now output is : ...
thanks for your help.......
Now output is :
0 0
1 61
2 767
if i want to print 61 and 767 and 0 by printf...........how i will do it.....
i mean if 0 (1st column) then print...
1,905
Posted By Aditya.Gurgaon
i tried awk 'BEGIN {sum=0} {sum=sum+$5} END...
i tried
awk 'BEGIN {sum=0} {sum=sum+$5} END {print sum}'

but it is giving total sum.........
but i need to differentiate.........for 1 ( in 1st column ) i want diff sum and for 2 ( in 1st...
Showing results 1 to 25 of 70

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