Sponsored Content
Top Forums Shell Programming and Scripting Help with merge two file based on similar column content Post 302523921 by zaxxon on Friday 20th of May 2011 09:18:59 AM
Old 05-20-2011
Oki, thanks^^
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

merge rows based on a common column

Hi guys, Please guide me if you have a solution to this problem. I have tried paste -s but it's not giving the desired output. I have a file with the following content- A123 box1 B345 bat2 C431 my_id A123 service C431 box1 A123 my_id I need two different outputs- OUTPUT1 A123... (6 Replies)
Discussion started by: smriti_shridhar
6 Replies

2. Shell Programming and Scripting

Merge Two Files based on First column

Hi, I need to join two files based on first column of both files.If first column of first file matches with the first column of second file, then the lines should be merged together and go for next line to check. It is something like: File one: 110001 abc efd 110002 fgh dfg 110003 ... (10 Replies)
Discussion started by: apjneeraj
10 Replies

3. Shell Programming and Scripting

merge two two txt files into one file based on one column

Hi, I have file1.txt and file2.txt and would like to create file3.txt based on one column in UNIX Eg: file1.txt 17328756,0000786623.pdf,0000786623 20115537,0000793892.pdf,0000793892 file2.txt 12521_74_4.zip,0000786623.pdf 12521_15_5.zip,0000793892.pdf Desired Output ... (5 Replies)
Discussion started by: techmoris
5 Replies

4. Shell Programming and Scripting

Joining multiple files based on one column with different and similar values (shell or perl)

Hi, I have nine files looking similar to file1 & file2 below. File1: 1 ABCA1 1 ABCC8 1 ABR:N 1 ACACB 1 ACAP2 1 ACOT1 1 ACSBG 1 ACTR1 1 ACTRT 1 ADAMT 1 AEN:N 1 AKAP1File2: 1 A4GAL 1 ACTBL 1 ACTL7 (4 Replies)
Discussion started by: seqbiologist
4 Replies

5. Shell Programming and Scripting

Help with replace column one content based on reference file

Input file 1 testing 10 20 1 A testing 20 40 1 3 testing 23 232 2 1 testing 10 243 2 . . Reference file 1 final 3 used . . Output file (2 Replies)
Discussion started by: perl_beginner
2 Replies

6. Shell Programming and Scripting

Help with replace column one content based on reference file

Input file 1 testing 10 20 1 A testing 20 40 1 3 testing 23 232 2 1 testing 10 243 2 . . Reference file 1 final 3 used . . Output file (1 Reply)
Discussion started by: perl_beginner
1 Replies

7. Shell Programming and Scripting

Merge two files with similar column entries

Hi , I have few files which contains user name and data transfer rate in MBs and this data is collected for year and for each month report is saved in 12 different files I have to merge all the files to prepare the final report Files are as below Similarly I have 10 more files ... (5 Replies)
Discussion started by: pratapsingh
5 Replies

8. UNIX for Dummies Questions & Answers

Find the average based on similar names in the first column

I have a table, say this: name1 num1 num2 num3 num4 name2 num5 num6 num7 num8 name3 num1 num3 num4 num9 name2 num8 num9 num1 num2 name2 num4 num5 num6 num4 name4 num4 num5 num7 num8 name5 num1 num3 num9 num7 name5 num6 num8 num3 num4 I want a code that will sort my data according... (4 Replies)
Discussion started by: FelipeAd
4 Replies

9. Shell Programming and Scripting

Merge files based on the column value

Hi Friends, I have a file file1.txt 1|ABC|3|jul|dhj 2|NHU|4|kil|eu 3|hjd|34|hfd|43 file2.txt 1||3|KING|dhj 2|NHU||k| 3|hjd|34|hd|43 i want to merge file1.txt file2.txt based on the column null values in file2.txif there are any nulls in column values , (5 Replies)
Discussion started by: i150371485
5 Replies

10. UNIX for Dummies Questions & Answers

How to merge two tables based on a matched column?

Hi, Please excuse me , i have searched unix forum, i am unable to find what i expect , my query is , i have 2 files of same structure and having 1 similar field/column , i need to merge 2 tables/files based on the one matched field/column (that is field 1), file 1:... (5 Replies)
Discussion started by: karthikram
5 Replies
foo2hiperc-wrapper(1)					      General Commands Manual					     foo2hiperc-wrapper(1)

NAME
foo2hiperc-wrapper - Convert Postscript into a HIPERC printer stream SYNOPSIS
foo2hiperc-wrapper [options] [ps-file] DESCRIPTION
foo2hiperc-wrapper is a Foomatic compatible printer wrapper for the foo2hiperc printer driver. This script reads a Postscript ps-file or standard input and converts it to the Oki HIPERC printer format for driving the Oki C310dn, C3100, C3200, C3300n, C3400n, C5100n, C5500n, C5600n and the C5800n HIPERC printers. This script can be used in a standalone fashion, but is intended to be called from a printer spooler system which uses the Foomatic printer database. COMMAND LINE OPTIONS
Normal Options These are the options used to select the parameters of a print job that are usually controlled on a per job basis. -c Print in color (else monochrome). -C colormode Color correction mode [0]. 10 ICM color profile (using -G *.icm file) -d duplex Duplex code to send to printer [1]. | | | |1 off | 2 long edge | 3 short edge -m media Media code to send to printer [0]. -------------------------- Media HIPERC -------------------------- plain 0 labels 1 transparency 2 -p paper Paper size code to send to printer [2]. +-------------+------------------+ | 1 A4 | 2 letter | | 3 legal | - - | | 5 A5 | 6 B5jis | | 7 A6 | 8 env Monarch | | 9 env DL | 10 env C5 | |11 env #10 | 12 executive | |13 env #9 | - - | +-------------+------------------+ -n copies Number of copies [1]. -r xresxyres Set device resolution in pixels/inch [600x600]. -s source Source (Input Slot) code to send to printer [0]. |0 auto select | |1 tray1 | 2 tray2 |3 multi | 4 manual -t Draft mode. Every other pixel is white. -2 -3 -4 -5 -6 -8 -9 -10 -12 -14 -15 -16 -18 Print in N-up. Requires the psutils package. -o orient Orientation used for N-up. Portrait -op (normal) Landscape -ol (rotated 90 degrees anticlockwise) Seascape -os (rotated 90 degrees clockwise) Printer Tweaking Options These are the options used to customize the operation of foo2hiperc for a particular printer. -u xoffxyoff Set the offset of the start of the printable region from the upper left corner, in pixels [varies with paper size]. -l xoffxyoff Set the offset of the end of the printable region from the lower right corner, in pixels [varies with paper size]. -L mask Send the logical clipping values from -u/-l in the HIPERC stream. foo2hiperc-wrapper always runs Ghostscript with the ideal page dimensions, so that the scale of the image is correct, regardless whether or not the printer has unprintable regions. This option is used to move the position of the clipped image back to where it belongs on the page. The default is to send the amount which was clipped by -u and -l, and should be good in most cases. 0 don't send any logical clipping amounts 1 only send Y clipping amount 2 only send X clipping amount 3 send both X and Y clipping amounts -Z compressed Use uncompressed (0) or compressed (1) JBIG data. Color Tweaking Options These are the options used to control the quality of color output. Color correction is currently a WORK IN PROGRESS. -g gsopts Additional options to pass to Ghostscript, such as -g"-dDITHERPPI=nnn", etc. This option may appear more than once. -G profile.icm Convert profile.icm to a Postscript color rendering dictionary (CRD) using foo2zjs-icc2ps and adjust the printer colors by using the Postscript setcolorrendering operator. (WORK IN PROGRESS). -G gamma-file.ps Prepend gamma-file.ps to the Postscript input to perform color correction using the setcolortransfer Postscript operator. For exam- ple, the file might contain: {0.333 exp} {0.333 exp} {0.333 exp} {0.333 exp} setcolortransfer -I intent Select profile intent from the ICM file. 0=Perceptual, 1=Colorimetric, 2=Saturation, 3=Absolute. Default is 0 (perceptual). Debugging Options These options are used for debugging foo2hiperc and its wrapper. -S plane Output just a single color plane from a color print and print it on the black plane. The default is to output all color planes. 1 Cyan 2 Magenta 3 Yellow 4 Black -D level Set Debug level [0]. EXAMPLES
Create a monochrome HIPERC stream from a Postscript document, examine it, and then print it using nc(1) or netcat(1): foo2hiperc-wrapper testpage.ps > testpage.hc hipercdecode < testpage.hc nc 192.168.1.NNN 9100 < testpage.hc Create a color HIPERC stream from a Postscript document: foo2hiperc-wrapper -c testpage.ps > testpage.hc FILES
/usr/bin/foo2hiperc-wrapper SEE ALSO
foo2hiperc(1), hipercdecode(1) AUTHOR
Rick Richardson <rick.richardson@comcast.net> http://foo2hiperc.rkkda.com/
All times are GMT -4. The time now is 01:13 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy