Search Results

Search: Posts Made By: pk_eee
1,556
Posted By pk_eee
Log to csv
Hi

I would like to extract the values that are in bold and have them a csv. There are multiple logs seperated by <BOR><EOR>. Request your help.

<BOR>
Datetime:2008.08.22.06.00.43.347*-EDT^...
25,110
Posted By pk_eee
Thanks for your help....
Thanks for your help....
25,110
Posted By pk_eee
Thanks.. If Iam using printf, this is what I...
Thanks..

If Iam using printf, this is what I get

Apple10.2.2.2.3
10.2.3.4.5
10.2.3.4.3

But I want

Apple
10.2.2.2.3
10.2.3.4.5
10.2.3.4.3
25,110
Posted By pk_eee
print: command not found
Hi

I have print Apple >> /tmp/temp7.xls as part of my shell script. But when I execute I have the following error. Please help.

RT.sh: line 801: print: command not found
2,454
Posted By pk_eee
Hi All Thanks for all your replies.. ...
Hi All

Thanks for all your replies..

The following satisfied me with the output.

cat apple_`date +%Y-%m-%d`.log


Thanks...
2,454
Posted By pk_eee
Hi All Thanks for your replies... But...
Hi All

Thanks for your replies...

But what Iam looking for is something like

cat apple_<command to substitute the current date>.log
2,454
Posted By pk_eee
Parsing Date to a file name
Hi All

There is a file "apple_2008-08-15.log".

I have to use grep on this file to collect my test log. There are 45 such files. Is there a command that I can use to dynamically substitute the...
10,724
Posted By pk_eee
Thanks...This works awk 'NR==1{k=0;Sum=0}{print...
Thanks...This works
awk 'NR==1{k=0;Sum=0}{print $1; k=k+1; Sum=Sum+$1}END{print "Raws=" k " AVG.= "Sum/k}' input File

But what iam looking for is
Output

<Name of the service> <AverageValue>...
10,724
Posted By pk_eee
Calculating the Number of Rows and Average
Hi All

I like to know how can we calculate the number of rows and the average of the values present in the file. I will not know what will be the rowcount, which will be dynamic in nature of the...
7,102
Posted By pk_eee
Excel Column Headers
cat ABC.log | egrep "Error 500" >> /tmp/Logs.log
egrep "<Mango>.*<.Mango>" Logs.log | sed -e "s/^.*<Mango/<Mango/" | cut -f2 -d">"| cut -f1 -d"<" >> /tmp/temp1.xls
egrep "<Apple>.*<.Apple>"...
2,892
Posted By pk_eee
Need your Help....
I want to extract the value of Webpart ID. Please let me know where Iam going wrong.


egrep "<property name=\"WebPartId" /tmp/datapower/GetCustBankAccountsService.log | sed -e "s/^.*WebPartId"\"...
Forum: HP-UX 07-30-2008
9,409
Posted By pk_eee
Linux - HP UX Command options
Just I gone with the script, I found some command's options which are not compatible with " HP-UX ".

If I found any alternate commands to the following, most probably I will solve the issue...
3,875
Posted By pk_eee
Thanks vgersh. need one more help. I want to...
Thanks vgersh. need one more help. I want to know how to combine the 2 below queries so that i can get those 2 values in the format value1, value2

egrep "<timestamp>.*<.timestamp>"...
3,875
Posted By pk_eee
Writing to a file
$ egrep "<timestamp>.*<.timestamp>" GetCustBankAccountsService.log | sed -e "s/^.*<timestamp/<timestamp/" | cut -f2 -d">"| cut -f1 -d"<" < /tmp/123.log
-ksh: /tmp/123.log: cannot open [No such file...
2,892
Posted By pk_eee
Extracting XML Tag Contents
Hi Jean

I require your help in writing a shell script. Iam zero in Unix programming. I have a large file about 400 MB of data, which contains about 50000 XML messages seperated by a Tab, I think....
4,852
Posted By pk_eee
help me with this using Unix commands?
help me with this using Unix commands?
4,852
Posted By pk_eee
Expected output: ...
Expected output:


timestamp WebPartId bus:block bus:unblock endpt:operation
2008-07-24T04:17:04.137000-04:00 AcctBalances 2008-07-24 08:17:03.321000 2008-07-24...
4,852
Posted By pk_eee
XML Log Parsing
I have a log file that is around 300 MB of data having continours soap responses as shown below( I have attached only one sample SOAP). I would require to have the following extracted and written...
Showing results 1 to 18 of 18

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