I have two files that have the date field as a common. I request your help with some script that divide the value of the file1 by the value in the file2 only when the field date are the same between both files and create a new text file.
I would like to do the following in bash shell.
file a
a:1
b:2
c:3
file b
a:work:apple
b:baby:banana
c:candy:cat
d:desk:dog
I would like to match field 1 in file a to file b, if there's a match I would like
to append field 2 in file a to field 3 in file b.
Thank you. (8 Replies)
Hi,
I want to get script or command in Sun Unix which matches first fields of both the files and print the feilds of one files, example may make it more clear.
InputFile1
==================
Alex,1,fgh
Menthos,45454,toto
Gothica,855,ee
Zenie4,77,gg
Salvatore,66,oo
Dhin,1234,papapa... (3 Replies)
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)
First, thanks for the help in previous posts... couldn't have gotten where I am now without it!
So here is what I have, I use AWK to match $1 and $2 as 1 string in file1 to $1 and $2 as 1 string in file2. Now I'm wondering if I can extend this AWK command to incorporate the following:
If $1... (4 Replies)
Hi All,
I do have an EBCDIC file sent from the z/os , this file has records with different record types in it, the type of record is identified by bytes 45-46 like
value 12 has employee record
value 14 has salaray record and etc....
we do now want to split the big ebcdic file into multiple... (3 Replies)
Hi,
I have a file of csv data, which looks like this:
file1:
1AA,LGV_PONCEY_LES_ATHEE,1,\N,1,00020460E1,0,\N,\N,\N,\N,2,00.22335321,0.00466628
2BB,LES_POUGES_ASF,\N,200,200,00006298G1,0,\N,\N,\N,\N,1,00.30887539,0.00050312... (10 Replies)
I am trying to look for $2 of file1 (skipping the header) in $2 of file2 (skipping the header) and if they match and the value in $10 is > 30 and $11 is > 49, then print the line from file1 to a output file. If no match is foung the line is not printed. Both the input and output are tab-delimited.... (3 Replies)
Discussion started by: cmccabe
3 Replies
LEARN ABOUT DEBIAN
drumstick-dumpsmf
DRUMSTICK-DUMPSMF(1) User Commands DRUMSTICK-DUMPSMF(1)NAME
drumstick-dumpsmf - A Drumstick command line utility for decoding standard MIDI files.
SYNOPSIS
drumstick-dumpsmf [options] {FILE}
DESCRIPTION
This program is a Drumstick example and utility program. You can use it to decode a standard MIDI file as text.
ARGUMENTS
The following argument is required:
FILE
The name of the input SMF.
The following arguments are optional:
-h|--help
Prints a summary of the command-line options and exit.
-V|--version
Prints the program version number and exit.
LICENSE
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 or any
later version published by the Free Software Foundation, considering as source code any files used for the production of this manpage.
SEE ALSO drumstick-buildsmf(1), drumstick-playsmf(1), drumstick-dumpwrk(1), drumstick-dumpove(1)AUTHOR
Pedro Lopez-Cabanillas <plcl@users.sf.net>
COPYRIGHT
Copyright (C) 2010 Pedro Lopez-Cabanillas
drumstick 0.5.0 May 13, 2010 DRUMSTICK-DUMPSMF(1)