1. I want to match the first four columns of my file1 to the first four columns of file2, and if there is any match, I want the matching records from input file2 whose first four columns match to the input file1. Also, I want the other records from input file2, even though there is no match to input file 1. This is the reason why you are seeing output == cat input file2.
2. My four columns are
These are separated by spaces.
3. Also, I would really appreciate if you can write into another file, the unmatched records from input file1 which would contain the following record
Hi there,
I was wondering if someone can help me with this.
I am trying the combine multiple columns from multiple files into one file.
Example file 1:
c0t0d0 c0t2d0 # hostname vgname
c0t0d1 c0t2d1 # hostname vgname
c0t0d2 c0t2d2 # hostname vgname
c0t1d0 c0t3d0 # hostname vgname1... (5 Replies)
I get the point of number subtraction in one column
awk 'NR==1 {n=$1; next}; {n-=$1} END {print n}' inputfile
but I cannot figure it out how to do this to multiple
columns.
awkward. (6 Replies)
hello,
I will would be grateful if anyone can help me reply to my post
extract multiple cloumns from multiple files; skip rows and include filenames; awk
Please see this thread.
Thanks
manishabh (0 Replies)
Hi,
I need to compare multiple columns from 2 files.
I can, for example, have these 2 files:
file1:
col1, col2, col3,col4
a,1,4,7
b,2,5,8
c,3,6,9file2:
col1, col2, col3,col4
a,2,3,2
b,5,7,5
c,1,9,8As a result, I need for example the difference between the columns 2 and 4:
col2,... (3 Replies)
Hi guys,
I have very basic linux experience so I need some help with a problem.
I have 3 files from which I want to extract columns based on common fields between them.
File1:
--- rs74078040 NA 51288690 T G 461652 0.99223 0.53611 3
--- rs77209296 NA 51303525 T G 461843 0.98973 0.60837 3... (10 Replies)
Hi,
I have multiple files that each contain one column of strings:
File1:
123abc
456def
789ghi
File2:
123abc
456def
891jkl
File3:
234mno
123abc
456def
In total I have 25 of these type of file. (5 Replies)
Hello guys, I am quite new to Shell Scripting and I need help for this
I have a CSV file like this:
Requisition,Order,RequisitionLineNumber,OrderLineNumber
REQ1,Order1,1,1
REQ1,Order1,1,3
REQ2,Order2,1,5
Basically what I want to do is compare the first 3 fields
If all 3 fields are the same... (5 Replies)
Hello Gurus,
I have a multiple pipe separated files which have records going over multiple Lines. End of line separator is \n and records going over multiple lines have <CR> as separator. below is example from one file.
1|ABC DEF|100|10
2|PQ
RS
T|200|20
3| UVWXYZ|300|30
4| GHIJKL|400|40... (7 Replies)
Discussion started by: dJHa
7 Replies
LEARN ABOUT DEBIAN
text2ps
TEXT2PS(L) TEXT2PS(L)
NAME
text2ps - convert text files to PostScript
SYNOPSIS
text2ps [ options ] [ files ]
DESCRIPTION
Text2ps reads the input files (standard input if none are specified) and produces PostScript code which, when fed to a PostScript printer,
will print the files. With text2ps it is possible to select any font, point size and number of columns. Options and files can be inter-
mixed on the command line. Options are effective for all following files until they are overridden.
Options
Here follows a list of options that text2ps recognizes. Most numeric arguments are significant to one decimal place. Options are evalu-
ated from left to right. Later options override earlier ones.
-# n Print n copies of each page. (Default 1.)
-c n Print in n columns. (Default 1.)
-f font
Print using font font. (Default Courier.)
-p n Print with point size n. (Default 9.)
-v n Use a vertical spacing of n points. If the vertical spacing is set to 0, the spacing will be 1.2 times the point size. (Default
0.)
-l n Print n lines per column. When the line count is 0, print as many lines as will fit. (Default 0.)
-r [p|l]
Set the orientation to either portrait mode (p) or landscape mode (l). (Default p.)
-b [+|-]
Set page break mode. An argument + will force new files to be always printed on a new page (this is the default). After - new
files will be put on the same page if there are still empty columns and the number of columns, the orientation or the number of
copies didn't change. New files always start new columns. (Default -.)
-mt n The top margin is n points. (Default 63.)
-mb n The bottom margin is n points. (Default 63.)
-ml n The left margin is n points. (Default 59.)
-mr n The right margin is n points. (Default 59.)
-mg n The inter-column gap is n points. (Default 25.)
-t [+|-]
If the argument is + the name of the file being printed will be printed on each page. If the argument is - the file name will not
be printed. -t + implies -b +.
-T text
Print text as title on each page. This implies -t - and -b +. This option can be switched off by specifying -t - or -t +.
(Default no title.)
-F font
Set the title font to font. (Default Helvetica.)
-P n Set the title point size to n. (Default 12.)
-B n Draw borders around each page. The number n specifies how to draw borders. N can have any of the following values or-ed in:
1 Draw a line along the left of the page.
2 Draw a line along the bottom of the page.
4 Draw a line along the right of the page.
8 Draw a line along the top of the page.
16 Draw a line between columns. This line does not connect to the lines along the top or bottom.
32 Draw a connecting line between the line between columns and the line along the top.
64 Draw a connecting line between the line between columns and the line along the bottom.
When n is 0, no border lines are drawn. (Default no bordering lines.)
-w n Tab stops are set every n spaces. Set the width of the TAB character. (Default 8.)
-1 Sets up options to print in one column in portrait mode with the Courier font, so that you get 66 lines on a page. Equivalent to
specifying the options -c 1 -f Courier -p 9 -v 0 -r p -l 0 -mt 63 -mb 63 -ml 59 -mr 59.
This is the default.
-2 Sets up options to print in two columns in landscape mode with the Courier font, so that you get two 66-line columns on a page.
Equivalent to specifying the options -c 2 -f Courier -p 6 -v 0 -r l -l 0 -mt 63 -mb 63 -ml 59 -mr 59 -mg 25. Together with the -1
option, this is probably the most useful option.
The name - means standard input.
BUGS
Too many options.
There is no way to specify where the title will be placed.
If the font being used is not a constant width font and there are other characters than just tabs and spaces in front of a tab, the next
character may not align properly.
TEXT2PS(L)