06-06-2011
Still don't understand, then you need provide the expect output from your souce files.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have two files that have the date field in common. I request your help with some script that divide each field value from file1 by the correspond field value of the file2 only when the field date is equal in both files. Thanks in advance !
This is a sample of the files
file 1
12/16/2010,... (2 Replies)
Discussion started by: csierra
2 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I need help on appending certain field in my file1.txt based on matched patterns in file2.txt using awk or sed.
The blue color need to match with one of the data in field $2 in file2.txt. If match, BEGIN and FINISHED value in red will have a new value from field $3 and $4 accordingly.
... (1 Reply)
Discussion started by: redse171
1 Replies
3. Shell Programming and Scripting
Howdy!
I have multiple files with tab-separated data:
File1_filtered.txt
gnl|Amel_4.0|Group3.29 1 G R 42 42 60 15 ,.AAA.aa,aa.A.. hh00/f//hD/h/hh
gnl|Amel_4.0|Group3.29 2 C Y 36 36 60 5 T.,T, LggJh
gnl|Amel_4.0|Group3.29 3 A R 27 27 60 9 Gg,,.gg., B6hcc22_c
File2_filtered.txt
... (3 Replies)
Discussion started by: sramirez
3 Replies
4. Shell Programming and Scripting
I need to take 2 input files and create 1 output based on matches from each file. I am looking to match field #1 in both files (Userid) and create an output file that will be a combination of fields from
both file1 and file2 if there are any differences in the fields 2,3,4,5,or 6.
Below is an... (5 Replies)
Discussion started by: ambroze
5 Replies
5. Shell Programming and Scripting
Trying to combine strings that are a partial match to another in $1 (usually below it). If a match is found than the $2 value is added to the $2 value of the match and the $3 value is added to the $3 value of the match. I am not sure how to do this and need some expert help. Thank you :).
file
... (2 Replies)
Discussion started by: cmccabe
2 Replies
6. Shell Programming and Scripting
Trying to use awk to match the contents of each line in file1 with $5 in file2. Both files are tab-delimited and there may be a space or special character in the name being matched in file2, for example in file1 the name is BRCA1 but in file2 the name is BRCA 1 or in file1 name is BCR but in file2... (6 Replies)
Discussion started by: cmccabe
6 Replies
7. UNIX for Beginners Questions & Answers
I've written an awk script to compare two fields in two different files and then print portions of each file on the same line when matched. It works reasonably well, but every now and again, I notice some errors and cannot seem to figure out what the issue may be and am turning to you for help.
... (2 Replies)
Discussion started by: jvoot
2 Replies
8. UNIX for Beginners Questions & Answers
Hi, I have two TEST files t.xyz and a.xyz which have three columns each. a.xyz have more rows than t.xyz. I will like to output rows at which $1 and $2 of t.xyz match $1 and $2 of a.xyz. Total number of output rows should be equal to that of t.xyz.
It works fine, but when I apply it to large... (6 Replies)
Discussion started by: geomarine
6 Replies
9. Shell Programming and Scripting
I am trying to parse two csv files and make a match in one column then print the entire file to a new file and append an additional column that gives description from the match to the new file. If a match is not made, I would like to add "NA" to the end of the file
Command that Ive been using... (6 Replies)
Discussion started by: dis0wned
6 Replies
10. UNIX for Beginners Questions & Answers
Hi,
Below are the sample files. x.txt is from an Excel file that is a list of users from Windows and y.txt is a list of database account.
$ head -500 x.txt y.txt
==> x.txt <==
TEST01 APP_USER_PROFILE
USER03 APP_USER_PROFILE
TEST02 APP_USER_EXP_PROFILE
TEST04 APP_USER_PROFILE
USER01 ... (3 Replies)
Discussion started by: newbie_01
3 Replies
runtest(1) General Commands Manual runtest(1)
NAME
runtest - the DejaGnu test driver program
SYNOPSIS
runtest [ options ]
DESCRIPTION
DejaGnu is a framework for running test suites on GNU tools. It is written in expect, which uses Tcl (Tool command language). runtest is
the test driver program; use it to control what tests to run, and variations on how to run them.
You can find a comprehensive description of DejaGnu and runtest in The DejaGnu Testing Framework or its Info version, dejagnu.info.
OPTIONS
--all Print all test output to screen. By default, only unexpected results are displayed.
--baud rate
Set the baud rate for a serial line connection. Some serial interface programs (like tip) don't use this value but instead use a
separate initialization file.
--connect type
The type of connection to use. The choices are rlogin, telnet, rsh, kermit, tip and mondfe.
--debug
Turn on expect internal debugging output. All output is logged to a file called dbg.out. The output of the --strace also goes into
this file.
--help Prints out a help screen and then exits.
--host type
The configuration string for the host.
--ignore test1.exp test2.exp ...
Do not run the specified tests.
--mail 'name1 name2 ...'
Electronic mail addresses to receive test results.
--name hostname
The network hostname of the target board.
--objdir path
path is a directory containing compiled test code.
--outdir directory
The name of a directory for test log output.
--reboot
Reboot the target board when runtest initializes (if supported).
--srcdir path
path is a directory containing test directories.
--strace N
Turns on expect internal tracing to N levels deep.
--target type
The configuration string for the target.
--tool toolname
Specify the tool to be tested. toolname controls the test suite applied, and the associated initialization module.
--verbose, -v
Turns on more debugging output from test cases and DejaGnu utility code. Use more than once to increase output further.
--version, -V
Prints out the versions of DejaGnu, expect and Tcl.
-D[number]
Activate the Tcl debugger.number can be either 1 or 0. If it is 1, then the expect shell will break when it starts to run. All ^C's
drop DejaGnu back to the debugger prompt. A 0 starts DejaGnu like normal, but a ^C drops to the debugger prompt.
Any file name on the command line is assumed to be a subset
of the test names to run. Usually these are the names of the expect test driver, ie... special.exp.
Makefile style variables are used to specify tool names and their flags; these and other configuration dependent values are saved in the
file site.exp, created during configuration.
EXIT CODES
runtest sets the exit code to 1 if any of the tests failed, or sets it to 0 if all the tests passed.
SEE ALSO
The DejaGnu Testing Framework (dejagnu.info). This is the DejaGnu manual; its source is the SGML files doc/*.sgml. in the DejaGnu distri-
bution.
AUTHOR
Rob Savoye (rob@welcomehome.org)
29 Jul 2003 runtest(1)