Sponsored Content
Top Forums Shell Programming and Scripting Compare two files and merge into third Post 302898327 by wincrazy on Monday 21st of April 2014 11:46:31 AM
Old 04-21-2014
Good catch.. It was a typo on my part. Not much change from my requirements though.
The output need to contain CID4 and CID5, for brevity I left the off
It was a typo on "CID ID" and needs to be CID.
Thanks
Quote:
Originally Posted by Don Cragun
How is you awk program supposed to determine which input records produce output? (Why is there no output for the CID4 and CID5 input lines?)

How is you awk program supposed to know whether to print CID: or CID ID: on the second line of output for a given pair of CID input lines?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Compare two files and merge columns in a third

Hi, I'm working with snmp, with a little script I'm able to obtain from a switch a list with a couple of values with this format Port Mac 1 00:0A:0B:0C:0D:0E .... (hundred of entries) Now with a simple arp on a router I am able to obtain another list 00:0A:0B:0C:0D:0E... (20 Replies)
Discussion started by: CM64
20 Replies

2. Shell Programming and Scripting

compare the column from 3 files and merge that line

I have 3 file, each of has got 80000 records. file1.txt ----------------------- ABC001;active;modify;accept; ABC002;notactive;modify;accept; ABC003;notactive;no-modify;accept; ABC004;active;modify;accept; ABC005;active;no-modify;accept; file2.txt ---------------------------... (8 Replies)
Discussion started by: ganesh_mak
8 Replies

3. Shell Programming and Scripting

Merge files of differrent size with one field common in both files using awk

hi, i am facing a problem in merging two files using awk, the problem is as stated below, file1: A|B|C|D|E|F|G|H|I|1 M|N|O|P|Q|R|S|T|U|2 AA|BB|CC|DD|EE|FF|GG|HH|II|1 .... .... .... file2 : 1|Mn|op|qr (2 Replies)
Discussion started by: shashi1982
2 Replies

4. UNIX for Dummies Questions & Answers

compare columns from 2 files and merge

Dear all, Being new to Unix i have a problem. I have 2 files: File 1: 118,1,0,2,3,0,5,0.3,0,0.3,0.6,1 118,2,1,2,2,0,5,0.4,0,0.4,0.4,1 118,4,2,0,3,0,5,0.7,0,0.3,0.6,1 118,6,4,1,0,0,5,0.8,0,0.2,0,1 File 2: 118,1,BFGL-NGS-109695,3610326,0,18,1,0.556,0.389,0.056,0.25,0.8183... (2 Replies)
Discussion started by: samwilkinson
2 Replies

5. Shell Programming and Scripting

Require compare command to compare 4 files

I have four files, I need to compare these files together. As such i know "sdiff and comm" commands but these commands compare 2 files together. If I use sdiff command then i have to compare each file with other which will increase the codes. Please suggest if you know some commands whcih can... (6 Replies)
Discussion started by: nehashine
6 Replies

6. Shell Programming and Scripting

Shell Scripting: Compare pattern in two files and merge the o/p in one.

one.txt ONS.1287677000.820.log 20Oct2010 ONS.1287677000.123.log 21Oct2010 ONS.1287677000.456.log 22Oct2010 two.txt ONS.1287677000.820.log:V AC CC EN ONS.1287677000.123.log:V AC CC EN ONS.1287677000.820.log:V AC CC EN In file two.txt i have to look for pattern which column one... (17 Replies)
Discussion started by: saluja.deepak
17 Replies

7. Shell Programming and Scripting

AWK compare/merge

File1 2917,`0722,RDF1+TDEV,90(6),33,03E:0_12E:0,10000000c96c4af3_10000000c96c6e88,BL_db00p01e 2917,`0781,RDF1+TDEV,100(5),33,03E:0_12E:0,10000000c96c4af3_10000000c96c6e88,BL_db00p01e File2 2917,`0722,RDF1+TDEV,90(6),03E:0_12E:0,10000000c96c4af3_10000000c96c6e88,BL_db00p01e... (4 Replies)
Discussion started by: greycells
4 Replies

8. Shell Programming and Scripting

Checking in a directory how many files are present and basing on that merge all the files

Hi, My requirement is,there is a directory location like: :camp/current/ In this location there can be different flat files that are generated in a single day with same header and the data will be different, differentiated by timestamp, so i need to verify how many files are generated... (10 Replies)
Discussion started by: srikanth_sagi
10 Replies

9. Shell Programming and Scripting

Compare and Merge files

Hi All, I have two different files as shown below separated by a "|". I need to compare the first column from both the files and if they match merge both the columns. File 1 "S00172012"|"CHRONIC RENAL FAILURE"|""|"I" "S00159962"|"SUBENDO INFRC-INIT EPISD"|""|"I" "S00255303"|"BENIGN... (6 Replies)
Discussion started by: nua7
6 Replies

10. Shell Programming and Scripting

Compare and merge two big CSV files

Hi all, i need help. I have two csv files with a huge amount of data. I need the first column of the first file, to be compared with the data of the second, to have at the end a file with the data not present in the second file. Example File1: (only one column) profile_id 57036226... (11 Replies)
Discussion started by: SirMannu
11 Replies
fontconverter(1X)														 fontconverter(1X)

NAME
fontconverter - Converts user-defined characters (UDCs) into PCF format SYNOPSIS
fontconverter [-merge] [-w width] [-h height] [-udc udc_name] -font 'font_name' [-preload] preload_file OPTIONS
Specifies that command output be merged with an existing PCF font file. When the -merge option is specified, the command does not create a BDF file. See also the entry for the -font option. Specifies the width of the UDC font glyph. Use this option only when input fonts were created with a width smaller than the one specified for the cedit font-editing window. Specifies the height of the UDC font glyph. Use this option only when input fonts were created with a height smaller than the one specified for the cedit font-editing window. Specifies a non-default registry name when the -merge option is not specified. The file names for output files include base_name as the registry compo- nent, to which the fontconverter command automatically appends width and height specifiers and the and file types. The default registry names for UDC fonts vary according to language, as follows: JISX.UDC, for Japanese DEC.CNS.UDC, for Hanyu GB.UDC, for Hanzi When used with the -merge option, specifies the target font file for the merge operation. When used without the -merge option, specifies the font file whose header is used as a reference for generating the header of the standalone output file. Information in the reference font file is also used to determine default characters in the standalone output file. (A default character is a glyph, usually a square, that is displayed when the font file does not contain a glyph for a speci- fied code.) The reference_font parameter is specified using the format registry_width_height, for example: -font 'JISX.UDC_*' Specifies the file name of the input UDC file in a nondefault position on the command line. Include the -preload option only when specifying the preload_file parameter at a command line position other than last. OPERANDS
Specifies the input UDC font file for which PCF and BDF output formats are generated. DESCRIPTION
The fontconverter command creates PCF format font files for user-defined characters (UDCs) that are created by the font editor of the cedit utility. The PCF format font files allow UDCs to be displayed by X and Motif applications. Note You can also use the cgen command to create standalone PCF and BDF format font files and to merge font information into existing PCF format files. The advantage of using the cgen command for a merge operation is that you do not have to use the mkfontdir and xset commands to make information in the merged PCF file available to applications. EXAMPLES
The following example merges the UDC file, udc_font.pre, into the -*-140-*jisx0208* font. The generated output file is named jisx0208-kanji11_14_14.pcf: % fontconverter -merge -font '*-140-*jisx0208*' udc_font.pre The following example creates standalone font files in both PCF and BDF formats. The output files contain the converted result from udc_font.pre plus the default character and header information from font *-140-*jisx0208* but have the charset registry name deckanji.udc: %fontconverter -udc deckanji.udc -font '*-140-*jisx0208*' udc_font.pre FILES
Contains fontconverter error messages. SEE ALSO
Commands: cedit(1), cgen(1) fontconverter(1X)
All times are GMT -4. The time now is 09:59 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy