Sponsored Content
Full Discussion: Shell script to parsing log
Top Forums Shell Programming and Scripting Shell script to parsing log Post 302265027 by justbow on Friday 5th of December 2008 11:48:11 AM
Old 12-05-2008
Shell script to parsing log

Maybe you can see the log here


and i want that log become just only "[trigger] 02"
and then collect into Timestamp,msisdn,timeduration,contentUrl

the log always begin
[APPLICATION 1] {

and end with }

should i separate per index and then

to make it clearly you can see here

i still want that log become just only "[trigger] 02"
and then collect into Timestamp,msisdn,timeduration,contentUrl

If you see the stream always begin with :
[APPLICATION 1] { ----> begin

;;;;;;

} ----> end

Should i separate into index then,,

Regards, Smilie

Last edited by vbe; 12-05-2008 at 01:19 PM.. Reason: xduplicate because of moderation status
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

shell script argument parsing

how to parse the command line argument to look for '@' sign and the following with '.'. In my shell script one of the argument passed is email address. I want to parse this email address to look for correct format. rmjoe123@hotmail.com has '@' sign and followed by a '.' to be more... (1 Reply)
Discussion started by: rmjoe
1 Replies

2. Shell Programming and Scripting

Parsing a file in Shell Script

Hi, I have a requirement. I have an application which can take a file as inputs. Now the file can contain any number of lines. The tool has to pick up the first uncommented line and begin processing it. For example the file could be like this: #MANI123|MANI1234 #MANI234|MANI247... (4 Replies)
Discussion started by: sendhilmani123
4 Replies

3. Shell Programming and Scripting

Shell script for parsing 300mb log file..

am relatively new to Shell scripting. I have written a script for parsing a big file. The logic is: Apart from lot of other useless stuffs, there are many occurances of <abc> and corresponding </abc> tags. (All of them are properly closed) My requirement is to find a particular tag (say... (3 Replies)
Discussion started by: gurpreet470
3 Replies

4. Shell Programming and Scripting

Parsing a line in Shell Script

I have record line somthing like below with first line showing char spacing not real record line 1 | 2 | 3rd Field--------------|-4th field--| This is charcatersapcing of line DF20000000000000000130.7890000000750 I shoudl get two line from above line 1st line should 1 | 2 | 3rd... (3 Replies)
Discussion started by: unishiva
3 Replies

5. UNIX for Dummies Questions & Answers

shell script parsing with sed

#I'm quite new to scripting and my boss has asked me to solve a simple problem and sadly, I can't figure out how to do it. Any help is appreciated. :confused: #The following is a small shell script and the output that it produces for google.com. #!/bin/sh whois $1 | grep "Name Server"... (5 Replies)
Discussion started by: jjamd64
5 Replies

6. Shell Programming and Scripting

Performance of log parsing shell script very slow

Hello, I am an absolute newbie and whatever I've written in the shell script (below) has all been built with generous help from googling the net and this forum. Please forgive any schoolboy mistakes. Now to the qn, my input file looks like this - 2009:04:03 08:21:41:513,INFO... (7 Replies)
Discussion started by: sowmitr
7 Replies

7. Shell Programming and Scripting

Parsing XML using Shell Script

Hello, I'm a starting shell scripter and no Perl knowledge. I've trying to do this for a while: I want to parse an XML file and get certain data out of it and write that data into a CSV file, all this using Shell Scripting (in Bash). Or Perl without any XML Parser/Interpreter (if possible). ... (1 Reply)
Discussion started by: Kage Musha
1 Replies

8. Shell Programming and Scripting

XML parsing in a shell script.

Below is a XML I have... <?xml version="1.0" encoding="UTF-8" ?> <component xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:XXXXX-www-Install-Manifest manifest.xsd" xmlns="urn:qqqqq-Install-Manifest" name="OM" ... (1 Reply)
Discussion started by: dashok.83
1 Replies

9. Shell Programming and Scripting

XML parsing using shell script

I have a xml file like this <bul:collectionStrategy name="strategy1"> <bul:collectionTemplateGroup name="15min group"/> <bul:collectionTemplateGroup name="hourly group"/> </bul:collectionStrategy> <bul:CollectionTemplateGroup name="hourly group" > ... (2 Replies)
Discussion started by: LavanyaP
2 Replies

10. Shell Programming and Scripting

parsing using shell script

I have a file parameters.txt which contains 151524 151525 I have another file OID.csv which contains NE Version Object Type ID SDK param name Object OID test1 Start: 4.2 End: 4.2 pan 151524 speed ... (5 Replies)
Discussion started by: LavanyaP
5 Replies
SVN_LOG(3)								 1								SVN_LOG(3)

svn_log - Returns the commit log messages of a repository URL

SYNOPSIS
array svn_log (string $repos_url, [int $start_revision], [int $end_revision], [int $limit], [int $flags = SVN_DISCOVER_CHANGED_PATHS | SVN_STOP_ON_COPY]) DESCRIPTION
svn_log(3) returns the complete history of the item at the repository URL $repos_url, or the history of a specific revision if $start_revi- sion is set. This function is equivalent to svn log --verbose -r $start_revision $repos_url. PARAMETERS
o $repos_url - Repository URL of the item to retrieve log history from. o $start_revision - Revision number of the first log to retrieve. Use SVN_REVISION_HEAD to retrieve the log from the most recent revision. o $end_revision - Revision number of the last log to retrieve. Defaults to $start_revision if specified or to SVN_REVISION_INITIAL otherwise. o $limit - Number of logs to retrieve. o $flags - Any combination of SVN_OMIT_MESSAGES, SVN_DISCOVER_CHANGED_PATHS and SVN_STOP_ON_COPY. RETURN VALUES
On success, this function returns an array file listing in the format of: [0] => Array, ordered most recent (highest) revision first ( [rev] => integer revision number [author] => string author name [msg] => string log message [date] => string date formatted per ISO 8601, i.e. date('c') [paths] => Array, describing changed files ( [0] => Array ( [action] => string letter signifying change [path] => absolute repository path of changed file ) [1] => ... ) ) [1] => ... Note The output will always be a numerically indexed array of arrays, even when there are none or only one log message(s). The value of $action is a subset of the status output in the first column, where possible values are: Actions +-------+-------------------------+ |Letter | | | | | | | Description | | | | +-------+-------------------------+ | M | | | | | | | Item/props was modified | | | | | A | | | | | | | Item was added | | | | | D | | | | | | | Item was deleted | | | | | R | | | | | | | Item was replaced | | | | +-------+-------------------------+ If no changes were made to the item, an empty array is returned. NOTES
Warning This function is EXPERIMENTAL. The behaviour of this function, its name, and surrounding documentation may change without notice in a future release of PHP. This function should be used at your own risk. EXAMPLES
Example #1 svn_log(3) example <?php print_r( svn_log('http://www.example.com/', 23) ); ?> The above example will output something similar to: Array ( [0] => Array ( [rev] => 23 [author] => 'joe' [msg] => 'Add cheese and salami to our sandwich.' [date] => '2007-04-06T16:00:27-04:00' [paths] => Array ( [0] => Array ( [action] => 'M' [path] => '/sandwich.txt' ) ) ) ) SEE ALSO
SVN documentation on svn log . PHP Documentation Group SVN_LOG(3)
All times are GMT -4. The time now is 12:59 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy