Search Results

Search: Posts Made By: rkrish
Forum: Programming 07-29-2013
1,364
Posted By rkrish
Tokenistring a string in C++
Hi I have a string like
"12;13;14|aa = 14;bb = 15"

I have to store the values 12,13 and 14 in a list.
and aa,bb in another list.

Can anyone suggest me how to perform this in c++?
:confused:...
1,159
Posted By rkrish
It gave this output: awk -F"[][]" '{print...
It gave this output:

awk -F"[][]" '{print $1"-"$2"-"$3"-"$4}' text.dat
101,6789556897,0000795369 - seq-0152906817] - fmt_recs-187] - avg_recs-187]
101,4678354769,0000835783 - seq-0000000397] -...
1,159
Posted By rkrish
It didn't work :( % more text.dat ...
It didn't work :(

% more text.dat
101,6789556897,0000795369 - seq[0152906817] - fmt_recs[187] - avg_recs[187]
101,4678354769,0000835783 - seq[0000000397] - fmt_recs[98] - avg_recs[98] ...
1,159
Posted By rkrish
Count the field values in a file
Hi I have a file with contents like :


101,6789556897,0000795369 - seq[0152906817] - fmt_recs[187] - avg_recs[187]
101,4678354769,0000835783 - seq[0000000397] - fmt_recs[98] - avg_recs[98] ...
5,559
Posted By rkrish
The script I'm using is perl.
The script I'm using is perl.
5,559
Posted By rkrish
I want to divide the number of elements in large...
I want to divide the number of elements in large sharedArray in to 10 parts and store them in 10 small arrays.
if shared array has 1000 elements,then the splitted arrays should have 100 elements...
5,559
Posted By rkrish
The shared array will have contents like : ...
The shared array will have contents like :
'9868688868'
'6669668870'
'9676969969'
and so on..
5,559
Posted By rkrish
Split a large array into small chunks
Hi,
I need to split a large array "@sharedArray" into 10 small arrays.
The arrays should be like @sharedArray1,@sharedArray2,@sharedArray3...so on..
Can anyone help me with the logic to do so...
859
Posted By rkrish
Eg:my input file is like : /tmp/fix more test ...
Eg:my input file is like :
/tmp/fix more test
XMLReader 20398 RESTART Feb_08
XMLReader 20399 RESTART Feb_08
XMLReader 20400 RESTART Feb_08
XMLReader 20401...
859
Posted By rkrish
Help with system command
Hi,
I have a file 'acct_07756734.dat' and need to do some grep operation from a script
grep 'usage' acct_07756734.dat|wc -l
8
I need to do the same operation in aperl script,its is like...
3,143
Posted By rkrish
Passing arguments to a perl script
Hi I need to pass comma seperated arguments to a perl script?

It is like:
Exect.pl -d GUI1,GUI2,GUI3
and I need to store these argsGUI1,GUI2,GUI3 in an array.
can anyone suggest how to do that:
3,211
Posted By rkrish
Removing elements from an array
Hi I have two arrays :
@arcb= (450,625,720,645);
@arca=(625,645);
I need to remove the elements of @arca from elements of @arcb so that the content of @arcb will be (450,720).
Can anyone...
1,516
Posted By rkrish
Help in executing select query from perl script
Hi,
I have a perl snippet that call a select query with a bind variable,when i compile the script I'm unable to get the query output.
The same query when i fire in sqlplus fetches few rows.
The...
2,396
Posted By rkrish
Thankyou verymuch :) It worked for me:) and...
Thankyou verymuch :)
It worked for me:)
and one more thing...can I be able to perform integer operations like division on these fetched values? or need to do typecast or something like that ?
2,396
Posted By rkrish
I have just used the code you have given in a...
I have just used the code you have given in a sample perl file,while compiling it is throwing some error,I'm unable to figure out them.can you please help me fixing these errors:



#!perl
use...
2,396
Posted By rkrish
Is there anyway I can use grep for fetching those...
Is there anyway I can use grep for fetching those fields from output.
I don't need all those values to be fetched.
let's say from the output,I need to fetch the fields for only accumId='269' i.e.,...
2,396
Posted By rkrish
Help in parsing XML output file in perl.
Hi I have an XML output like :

<?xml version="1.0" encoding="ISO-8859-1" ?>
- <envelope>
- <body>
- <outputGetUsageSummary>
- <usgSumm rerateDone="5">
- <usageAccum accumId="269"...
2,323
Posted By rkrish
Need to run an API from a script and extract fields from output of API
Hi,
I need to call an API (GetUsageDetails)from inside a shell script which takes an input argument acct_nbr.

The output of API will be like :

<usageAccum accumId="450" accumCaptn="PM_125"...
1,122
Posted By rkrish
Thaks for the quick reply..It worked for me:)
Thaks for the quick reply..It worked for me:)
1,122
Posted By rkrish
help in fetching a field from a file
I have an input file with contents like :

'1LTYSJSD2KQ8KLE' -audit_grp_id , internal error qty < recycle qty requested, skipping record
'1LTYSJSD2KQ8KLE' -audit_group_id, 0 records has been...
5,046
Posted By rkrish
Calling a function in cpp file inside shell script
Hi I need to call a function written in a cpp file with arguments inside the shell script..Can anyone help me how to do this:(
11,395
Posted By rkrish
yes,I dont find any mistakes with the content...
yes,I dont find any mistakes with the content fed.
Am declaring 3 variables CNT,DROPCNT,ERRORCNT.
storing the count(*) value in CNT.
If that (CNT)is not equal to the $c we have passed then we are...
11,395
Posted By rkrish
ohh my mistake I have done it. this is...
ohh my mistake

I have done it.
this is the output:


ModifyUsgAuditGroupTable.ksh 120318
********Started processing at 20120327060800**********
log file path is :...
11,395
Posted By rkrish
I have ran wc -l over the file it displayed 3...
I have ran wc -l over the file it displayed 3 lines only.


more AuditGroupTableTableData_20120327051020.txt
1LK81JVDE2HRNDG 3 0 ...
11,395
Posted By rkrish
I have tried it gave me some wierd output but one...
I have tried it gave me some wierd output but one good thing is i thnk it got connected to db now:

/p2k/L10.21A/devlp/root/global/data/usage/DAILY> ModifyUsgAuditGroupTable.ksh 120318...
Showing results 1 to 25 of 71

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