I know this is not a scrpit writing server, but i have to write this code on urgent base , i am generating report manually and i am also trying to write the code
It will be great help if someone will help me .
Yeah i want to write the code like this and generate the report . I am very new in Unix and Perl programming .
Please send me the peace of perl code for this
thanks in advance
I have 2 files , one is master file and another file i am genearting which contains Number of fails for all host & version.
The first file is master file which contains 2 column, Test Case name and Product Name:
daily/DB/attach/attach_redundancy.exp: YRS
daily/DB/help/help.exp...
Hello
I have 2 files , one is master file and another file i am genearting which contains Number of fails for all host & version.
The first file is master file which contains 2 column, Test Case name and Product Name:
daily/DB/attach/attach_redundancy.exp: YRS
daily/DB/help/help.exp...
Hello ,
I have 2 files, First file (master.txt) contains 2 coulnms,
first coulumn is Test case name and other is product name.
Second file contains only one column test case name and fail record contains ! mark infornt for the record.
I want to add product name in second file comparing test...
#!/usr/local/bin/gawk
find /users/testsuite/SiCat.Tests/daily/DB/ -name \*.exp | xargs gawk 'BEGIN{m="
not found ";prod=" not found "}/maint/{m=$3}/product/{prod=$3}END{print FILENAME
,m,prod}'
This is working .. i changed the script like this ..
Thanks for help
yeah i tried this also . it takes only giving maint output.
any other soultions
i tried egrep also .. i think sed or awk will be best soultion but need help to write script
i tried all option and in our system awak and gawk both are installed .
awk: syntax error near line 1
awk: illegal statement near line 1
this error i am getting pls do help
thanks for ur reply . the maint name and product name are in Header of file
# $maint$ : dips
# $product$ : test
The files are stored in subdirectories with etn *.exp.
i worte the script
find /users/testsuite/SiCat.Tests/daily/DB/ -name \*.exp |xargs grep "maint" |"product"
it is greping...
I am newbie for this site and unix . I am writing shell script to grep maint and product from different files
the files are stored in sub directories
i have to grep filename maint product
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.