Need help to seperate data


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Need help to seperate data
# 1  
Old 08-28-2006
Need help to seperate data

Hello ALL,

I really need help to grep data and store in particular format. I am struggling to write that script .Please help me to solve this problem otherwise i will loose my job...

I have to compare 2 files and generate the staticts of the data.
First file product.dat contains 2 column .
TestName ProductName
/daily/db/network YRS
/daily/db/org SiCat

2 second file is consolidated file and it contains data and fails for Host and Version and Test Name.

I need to print the log in this format

Host Version SiCat YRS DB OPC
Animator 10 2 3 6 7
# 2  
Old 08-28-2006
We need the data format for the second file...
# 3  
Old 08-29-2006
Second file data

/users/testsuite/db/SiCat/2006-08-24/10/kracherl/run.log
! daily/DB/attach/attach_redundancy.exp:
! daily/DB/help/help.exp:
! daily/DB/hole_fail_rate/hfr-circular.exp:
! daily/DB/markerfile/cws.exp:
! daily/DB/markerfile/pd_hist.exp:
! daily/nanoCAD/edit/and_test_edit.exp:
! daily/nanoCAD/edit/poly_edit.exp:
/users/testsuite/db/SiCat/2006-08-24/10_64/limo/run.log
! daily/DB/attach/attach_redundancy.exp:
! daily/DB/hole_fail_rate/hfr-circular.exp:
! daily/DB/markerfile/cws.exp:
! daily/DB/markerfile/hole_enc.exp:
! daily/DB/markerfile/metal_island2.exp:
! daily/OPC/FitTool/fittool1.exp:
! daily/OPC/Simulator/bitmaps_1.exp:
! daily/OPC/Simulator/hier_ai_coarse.exp:
/users/testsuite/db/SiCat/2006-08-24/10_fast/via2/run.log
! daily/DB/attach/attach_redundancy.exp:
! daily/DB/file_io/save/save_cif.exp:
! daily/DB/hole_fail_rate/hfr-circular.exp:
! daily/DB/markerfile/cws.exp:
! daily/DB/markerfile/hole_enc.exp:
! daily/OPC/manuver/manuver_psd1.exp:
! daily/nanoCAD/edit/and_test_edit.exp:
! daily/nanoCAD/edit/poly_edit.exp:
/users/testsuite/db/SiCat/2006-08-24/7/optimator/run.log
! daily/DB/CmdLn/no_license.exp:
! daily/DB/add_prim/add_path.exp:
! daily/DB/core/check_db.exp:
! daily/DB/grid_measure/gm_area.exp:
! daily/DB/grid_measure/gm_edge_length.exp:
! daily/DB/grid_measure/gm_pattern_density.exp:
! daily/DB/grid_measure/gm_silicide_trans.exp:
! daily/DB/hole_fail_rate/hfr-insane.exp:
! daily/DB/hole_fail_rate/hfr-normal.exp:
! daily/DB/info/info.exp:
! daily/DB/mc_ca/mc_ca.exp:
! daily/DB/measure/measure_window.exp:
! daily/DB/silicide_transition/silicide_fkt.exp:
! daily/DB/smash/smash_bug3665.exp:
! daily/DB/smash/smash_bug5039.exp:
/users/testsuite/db/SiCat/2006-08-24/8/optimator/run.log
! daily/DB/SFM/scanHoleConnect.exp:
! daily/DB/add_prim/add_path.exp:
! daily/DB/attach/attach_density.exp:
! daily/DB/attach/attach_property-insane.exp:
! daily/DB/attach/attach_property.exp:
# 4  
Old 08-29-2006
The failuer record contains "!" in first column .
The row which doesnt contain ! , in that row 6 and 7 column is the version and Host name.
Product name are YRS , SiCat OPC PSd and nanocad

O/p i need this way

Version | Host | YRS | SiCat | OPC | PSD |nanocad
10 | Krachel | 2 | 4 | 5 | 0 | 1
10_64 | limo | 3 | 2 | 1 | 1 | 0


The first file data contains 2 columns

daily/DB/attach/attach_redundancy.exp SiCat
daily/DB/help/help.exp YRS
daily/DB/hole_fail_rate/hfr-circular.exp YRS


I have compare fails from first file with second file first column and print the total no of fails as per the product .

I can hardcored the Product name in shell script because product name are SiCat ,YRS ,OPC and PSD .

Please do help me
# 5  
Old 08-30-2006
please can someone help me to solve this .
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

For loop for seperate files

For shell script. If I had two separate files, file.txt and file1.txt and each has just a list of names from the who command. How would I create an if loop to compare each name? (1 Reply)
Discussion started by: Eric7giants
1 Replies

2. UNIX for Dummies Questions & Answers

Seperate columns according to delimiters

Hi all I need your help to separate colomns based on "-" delimiter for a very big file 30 millions rows I have a colmun looking like this : clomun 1 1-100000989-A_ATC 1-10000179-AAAAA 1-100002154-TGTTA 1-100002155-GTTAG 1-100002443 1-100002490 1-100002619 I need to separte in three... (5 Replies)
Discussion started by: biopsy
5 Replies

3. UNIX for Dummies Questions & Answers

How to seperate two lines that are joined?

i have something like this abc 123 3234 1234 * qqoiki * abc 4533 34 1234 * lloiki * i want to make it two lines i,e.,abc 123 3234 1234 * qqoiki * abc 4533 34 1234 * lloiki * how to do that ? (13 Replies)
Discussion started by: anurupa777
13 Replies

4. UNIX for Dummies Questions & Answers

I want to seperate my data by time of day

Hi, I'm a newbie to unix. I have a txt file with my data, a list of events. Each event comes with a unix time. I want to seperate a months worth of events into those that occur during the day, and those at night. I have no clue how to go about this, please can someone push me in the right... (6 Replies)
Discussion started by: pmasterkim
6 Replies

5. Shell Programming and Scripting

UNIX -> send data as excel in seperate cells

Hi I have a data file in UNIX as follows. I need to send this file in Mail as excel format. but the problem i face is i get the data all in single cells per row. what can i do to get the data in seperate cells. File -> attachment.xls data data data data data1 data1 ... (1 Reply)
Discussion started by: vj8436
1 Replies

6. Shell Programming and Scripting

how to awk a data from seperate lines

Hi guys, i have a problem which im hoping you will be able to help me with. I have follwing output :- ------------------------------------------------------------------------------- NSTEP = 407000 TIME(PS) = 43059.000 TEMP(K) = 288.46 PRESS = 0.0 Etot = -2077.4322 ... (2 Replies)
Discussion started by: Mish_99
2 Replies

7. Shell Programming and Scripting

how to seperate a variable in 2 variables

Dear all, i dont know how to split one variable value in 2 variable. please send me any example. variable1= "abcde developer" now i want to seperate the values and seperator is space. (6 Replies)
Discussion started by: intikhabalam
6 Replies

8. Shell Programming and Scripting

seperate elements of a file

i want to write a script in Bash Shell that accept a list of files.an example of file is 4334:234 322.345:32 234:3452 e.t.c each file only contain lines like num1:num2 i want to count the lines of this file and find the summary of X=4334+322.345+234 and Y=234+32+3452 (1 Reply)
Discussion started by: nektarios4u
1 Replies

9. Shell Programming and Scripting

Seperate commands on the same line

hello, is there a way to seperate commands that are on the same line? ie: echo "yes count(*)>0:" $passvar > dsp cat dsp cat dsp > log i'm trying to put these 3 commands on the same line, but when i do they all get concatenated into 1 lieteral if i put the cat commands on... (3 Replies)
Discussion started by: bobk544
3 Replies

10. Shell Programming and Scripting

row seperate

i have this sample data: test01 --- abc-01 name1 abc-02 name2 abc-03 name3 test02 --- abc-20 name4 abc-21 name5 test03 --- abc-22 name6 abc-23 name7 i want to generate a file... (13 Replies)
Discussion started by: inquirer
13 Replies
Login or Register to Ask a Question