dips
30th August 2006, 13:13
Hello All ,
I am learning Shell Script and i am very fresher . I need help to write one shell script .
We are generating several logs files in our testsuite system . I need to generate fails as per the host ,version and productwise .
The data is stored in different directories and run.log contains fails records with ! sign . I am extracting fails from each directory but cant't accumalte as per the product wise . because product name is stored in Master file product.dat.
The product.dat is Master file contains 2 column
Test Name ProductName
/dialy/test SiCat
/daily/yyyy YRS
/daily/ttttt SiCat
/daily/rttttt SiCat
/daily/wwww PSD
/daily/uuuu YRS
The second file which is generated only contain fails test name for whole system .
The data format is like this
/users/test/krachel/9/run.log
! /daily/wwww
! /daily/test1
! /daily/rrrrr
/users/test/limo/10/run.log
! /daily/wwww
! /daily/test1
The host and version i want to extract form line /users/test/
I have store data like this
Host Version SiCat YRS PSD
limo 10 3 3 5
krache 9 5 7 0
I am learning Shell Script and i am very fresher . I need help to write one shell script .
We are generating several logs files in our testsuite system . I need to generate fails as per the host ,version and productwise .
The data is stored in different directories and run.log contains fails records with ! sign . I am extracting fails from each directory but cant't accumalte as per the product wise . because product name is stored in Master file product.dat.
The product.dat is Master file contains 2 column
Test Name ProductName
/dialy/test SiCat
/daily/yyyy YRS
/daily/ttttt SiCat
/daily/rttttt SiCat
/daily/wwww PSD
/daily/uuuu YRS
The second file which is generated only contain fails test name for whole system .
The data format is like this
/users/test/krachel/9/run.log
! /daily/wwww
! /daily/test1
! /daily/rrrrr
/users/test/limo/10/run.log
! /daily/wwww
! /daily/test1
The host and version i want to extract form line /users/test/
I have store data like this
Host Version SiCat YRS PSD
limo 10 3 3 5
krache 9 5 7 0