Search Results

Search: Posts Made By: poweroflinux
2,413
Posted By poweroflinux
Want to improve the performance of script
Hi All,
I have written a script as follows which is taking lot of time in executing/searching only 3500 records taken as input from one file in log file of 12 GB Approximately.
Working of script is...
1,587
Posted By poweroflinux
Help in parsing
Hi Durden,

Thanks for the suggestion, but is there is any way to remove only closed sqaure bracket "]" and print other data in this variable.
For instance :
Other_Info=sometext]

Then...
1,587
Posted By poweroflinux
Help in Parsing
Thanks for prompt response.
But there is only issue left that closed square bracket]" is left in the output.
Please suggest
1,587
Posted By poweroflinux
Help in Parsing data
I have below string

Transaction_ID:SDP-DM-151204679 , Transaction_DateTime:2011-02-11 00:00:15 GMT+05:30 , Transaction_Mode:WAP , Circle_ID:4 , Circle_Name:BJ ,Zone: , CustomerID:B_31563486 ,...
1,447
Posted By poweroflinux
Reply to Pravin27
See my output below:
File size is:
[sdpuser@gnnsdp40 test]$ ll -h DCILog_DEBUG.csv.2010-12-21
-rw-r--r-- 1 sdpuser sdpadmin 11G Dec 22 13:07 DCILog_DEBUG.csv.2010-12-21

[sdpuser@gnnsdp40 test]$...
1,447
Posted By poweroflinux
Reply to Pravin27
Hi Pravin,

No output received using the above command.
Following shows for your reference:

[sdpuser@gnnsdp40 test]$ tail -f DCILog_DEBUG.csv.2010-12-21
21 Dec 2010 23:59:59,760 INFO - ...
1,447
Posted By poweroflinux
Getting Segmention fault error while searching string in csv file
I am using grep command to search in a particular file whose size is 11 GB and i am getting Segmentation fault error as an output.

My command and output is as follows:

[sdpuser@gnnsdp40 test]$...
4,695
Posted By poweroflinux
Thanks
Thanks again.
Its working now.
4,695
Posted By poweroflinux
Thanks
I got it
Thank you so much for your help.

---------- Post updated 12-23-10 at 12:55 AM ---------- Previous update was 12-22-10 at 11:55 PM ----------



Hi Anurag,

Apologies for...
4,695
Posted By poweroflinux
Thanks
Thanks for making me the understand of code.
Please guide me where i have to set OFS to comma.
Thanks in advance.
4,695
Posted By poweroflinux
Thanks
Thanks Anurag for your help.
It will be great if you can help me understanding the code.
4,695
Posted By poweroflinux
Replace data of one column with data on other file corresponding to transaction ID matched
Hi All,

I have two files one of which having some mobile numbers and corresponding value whose sample content as follows:

9058629605,8.0
9122828964,30.0


And in second file complete...
5,784
Posted By poweroflinux
Getting error while getting status of active and inactive sessions from ORACLE DB
Hi All,
I have a written a test script which retrieves the status of active and inactive sessions from oracle DB, but i am receiving error while executing.
My script is
...
2,155
Posted By poweroflinux
Want to learn/use SQLPLUS in shell script
Hi All,
How i will use sqlplus in shell script?
Can any one provide sample code which explain following:
1. Connect to oracle DB
2. Exceute select * from tablename
3. Release connection to the...
1,138
Posted By poweroflinux
Issue faced while accessing data from files on different servers.
I have two log files of same name and structure which resides on different servers with ssh-keygen installed.
I want to search for a list of strings available in an array on last 15 minutes logs of...
3,089
Posted By poweroflinux
Mapping with series from master file and calculate count
Hi rdcwayx,

I got the way from searching the last 15 minutes logs check the code below and tell me if you have more optimized way:

#!/bin/bash
to=`date +"%d-%b-%Y %T"`
echo $to
let...
3,089
Posted By poweroflinux
Mapping with series from master file and calculate count
Hi rdcwayx,

Thanks for the help, its working fine now.
I want your help for one more thing:
I want to check for the given string that is "ShortCode=tel:" in last 15 minutes of running logs....
3,089
Posted By poweroflinux
Mapping with series from master file and calculate count
Hi rdcwayx,

The complete URL is not printed in the previous post
You can click on any of the URL and see the parameters containing "ShortCode=tel:"
For your convinience i am trying to copy one...
3,089
Posted By poweroflinux
Mapping with series from master file and calculate count
Hi rdcwayx,

The above is the sample text in the file and the lines containing "ShortCode=tel:" are as follows:

08-Sep-2010...
3,089
Posted By poweroflinux
Mapping with series from master file and calculate count
Hi rdcwayx

Sample content of the file is as follows:

08-Sep-2010 08:45:12,437|7398473722|subscription_app|-7932740d%3A12aedfb6d15%3A-3d49|ChargeAmount|ValidateMSISDNInterceptor - validation...
3,089
Posted By poweroflinux
Mapping with series from master file and calculate count
Hi All,

My shell script is calculating the count of each shortcode series wise whose sample output is as follows:

--------------------------
56882
9124 1
9172 1
9173 4
8923 6
9175 1...
8,778
Posted By poweroflinux
Grep string from logs of last 1 hour on files of 2 different servers and calculate count
Hi frank,

Check my output below and suggest the changes that have to be done or more optimized way of doing that:

+ set -u
++ date '+%d-%b-%Y %T'
+ to='06-Sep-2010 10:46:22'
+ echo...
8,778
Posted By poweroflinux
Grep string from logs of last 1 hour on files of 2 different servers and calculate count
Hi Frank,

Yes the first line is #!/bin/bash in code.
Error i am getting is grepstring.sh is not found on line where i am calling command on server 2.
8,778
Posted By poweroflinux
Grep string from logs of last 1 hour on files of 2 different servers and calculate count
Hi,
I am trying to grep a particular string from the files of 2 different servers without copying and calculate the total count of its occurence on both files.
File structure is same on both...
2,122
Posted By poweroflinux
add second field of two files on different servers
Great thanks zaxxon,Thats what i wanted...:)
Showing results 1 to 25 of 33

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