Advance file parsing...


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Advance file parsing...
# 1  
Old 03-29-2011
Advance file parsing...

hi all
i have a file of the format
Time(starting from 0 in asc order) bytes service flags protocols

e.g.
0, 0, 0, 56, 56
1, 524, 3, 6, 75
1, 624, 0, 43, 53
2, 72, 0, 43, 80
3, 26, 3, 6, 56
4, 323, 3, 1459, 75
5, 325, 3, 1459, 53
6, 225, 3, 1436, 57


now here in the window size of 2 seconds(here the time field) the pattern in the last column repeats the sequence 56-75-53 (if u see in the table the duration is 2 seconds e.g 2-0=2 and 5-3=2)

so the output should be like the pattern of the field along with number of times it has been repeated throughout the table(there are around 50000 such records in the file)
# 2  
Old 03-29-2011
Double post of:

parsing a database with java

Thread closed
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Help with printing advance output format from a file

Hi, below 'awk' code was given for my thread 'Help with printing output format from a file ' earlier, however script is not resulting expected output with below file content. cat test_tes123.dml record string("\001") emp_num; /* CHAR(11) NOT NULL*/ date("YYYYMMDD")... (1 Reply)
Discussion started by: AAHinka
1 Replies

2. UNIX for Advanced & Expert Users

Advance conditional grep command

Hi guys, I need your help to use advance grep command, In my example below, I have 5 container which has some information on it, and I need to grep specific word "PLMNCode=454F00" which will not only grep the line contains that word, but I need to print the output for the whole container. Input... (6 Replies)
Discussion started by: hapalon
6 Replies

3. Debian

Squid Advance problem.

Hi There I have a network where im running squid proxy in transparent mode. All sites are blocked by default and the users can only browse sites listed in a file called allowed-sites. I have to block a group of users in department A from accessing 5 sites that the rest of the company can access.... (0 Replies)
Discussion started by: linuxjunkie
0 Replies

4. Programming

Advance FIND Command

Hi, I have to find jar file name and its path by passing it containing class file name, jar is a kind of zip. by using following command I am able to get jar file name by passing class file name. find -name "*.jar" -exec grep "CLASSNAME" {} \; find -name "*.jar" -exec grep... (3 Replies)
Discussion started by: niceboykunal123
3 Replies

5. Solaris

Advance 2 Days

Hi, Anyone can help me, how to used the advance 2 days? today is : 20090915 i need to get the date : 20090917 in the OS level Thanks, DBM (4 Replies)
Discussion started by: dba_macau
4 Replies

6. UNIX for Advanced & Expert Users

Help needed Urgently... Thanks in advance

You have a file called /opt/test/input.txt with the following information: man_aa_bld_100.410.040_CMD 08/14/2008 23:29:21 08/14/2008 23:31:10 SU 5339491/1 man_aa_bld_100.410.050_CMD 08/14/2008 23:29:21 08/14/2008 23:31:11 SU 5339491/1 man_aa_bld_100.410.060_CMD 08/14/2008 ... (3 Replies)
Discussion started by: jkumsi
3 Replies

7. Shell Programming and Scripting

Parsing of file for Report Generation (String parsing and splitting)

Hey guys, I have this file generated by me... i want to create some HTML output from it. The problem is that i am really confused about how do I go about reading the file. The file is in the following format: TID1 Name1 ATime=xx AResult=yyy AExpected=yyy BTime=xx BResult=yyy... (8 Replies)
Discussion started by: umar.shaikh
8 Replies

8. UNIX for Advanced & Expert Users

Regarding Advance installation

Hi to all, I have one doubt in unix/linux installation. There are two systems in which one is Sparc system having no CD-Rom, No O/S and fresh Hard disk and another system is having windows O/S. Now, can i install unix or linux o/s in the Empty Sparc System by using other system which is... (1 Reply)
Discussion started by: sasidarvarma
1 Replies

9. Shell Programming and Scripting

Advance string pattern search Please

Here is my problem.. 1. I want to search all those files with file name starting AJ128**** (in all the sub directories also) 2. I want to search for the follwoing type of string line beging with string - 'AK*any_1_char*any_2_char*510' 3. I need to display list of file names... (2 Replies)
Discussion started by: sainj
2 Replies

10. Shell Programming and Scripting

A more advance Alias

Hey all, I want to go ahead and create a alias for the command /bin/passwd. But I want to do this so that it will/can detect if the -r option is added to the command as well...Can this be done... For example if the user enters: # passwd --> Alias will issue /bin/passwd -r # passwd -r... (0 Replies)
Discussion started by: msbutton27
0 Replies
Login or Register to Ask a Question