Here is my attempt, I've only replace fields that start with two or more ., characters as you seem to have fields ending with these characters in your desired output:
My Friends,
Need your help to find the difference between few columns from two comma delimited files. For example, File1 and File2 has 22 columns, and I want to find the difference in first 12 columns.
I have list of file names in MyListOfFiles2Compare.txt. Data is separated with commas.... (5 Replies)
Hello all,
Could someone please let me know shell script or awk solution to compare two columns in two files? Here is the sample -
file1.txt
abc/xyz,M1234
ddd/lyg,M2345
cnn/tnt,G0123
file2.txt
A,abc/xyz,kk,dd,zz,DCT,G0123,1
A,ddd/lyg,kk,dd,zz,DCT,M1234,1... (17 Replies)
Hi all,
I would like to compare a column in one file to a column in another file and when there is a match it prints the first column and the corresponding second column. Example
File1
ABA
ABC
ABE
ABF
File 2
ABA 123
ABB 124
ABD 125
ABC 126
So what I would like printed to a file... (0 Replies)
Hi
I have to compare two .csv files which having 4 columns and i am expecting the output if there is difference in the 3,4columns in two files with respect to the first column. if my statement is not clear please refer the example.
Input:
-----
File 1 :
hostname MAC SWITCH_IP SWITCH_PORT... (7 Replies)
Hi
I have file 1 like this
and file 2 like this
I need to compare column 3 of both files and delete lines in file1 with same column 3 values in two files. So the output is
I tried with perl but didnt work. A perl code will be good as I am learning the language, but any other code would... (1 Reply)
Hi all, I'm pretty much a newbie to UNIX. I would appreciate any help with UNIX coding on comparing two large csv files (greater than 10 GB in size), and output a file with matching columns.
I want to compare file1 and file2 by 'id' and 'chain' columns, then extract exact matching rows'... (5 Replies)
Hi,
Below is my requirement
file1
id|cnt
1|1
2|2
3|3
file2
id_1|cnt_1
1|1
2|1
3|1
I want to compare cnt and cnt_1 columns, if they are differ then give the details
Am using below awk command, but the output is not as expected. (2 Replies)
Hi All,
I have a.dat file with content
1,338,30253395122015103,2015103,UB0085000,STMT151117055527002,,,
1,338,30253395122015103,2015103,UB0085000,STMT151117055527001,,,
and b.dat having content
1,STMT151117055527001,a1.txt,b1.txt,c1.txt
1,STMT151117055527002,a2.txt,b2.txt,c2.txt
... (13 Replies)
Discussion started by: PRAMOD 96
13 Replies
LEARN ABOUT DEBIAN
grib_set
GRIB_SET(1) User Commands GRIB_SET(1)NAME
grib_set - Sets key/value pairs in gribs.
DESCRIPTION
Sets key/value pairs in the input grib file and writes each message to the output_grib_file. It fails when an error occurs (e.g. key not
found).
USAGE
grib_set [options] grib_file grib_file ... output_grib_file
OPTIONS -s key[:{s/d/l}]=value,key[:{s/d/l}]=value,...
Key/values to set. For each key a string (key:s) or a double (key:d) or a long (key:l) type can be defined. By default the native
type is set.
-r Repack data. Sometimes after setting some keys involving properties
of the packing algorithm a repacking of data is needed. This repacking is performed setting this -r option.
-d value
Set all the data values to "value".
-p key[:{s/d/l}],key[:{s/d/l}],...
Declaration of keys to print. For each key a string (key:s) or a double (key:d) or a long (key:l) type can be requested. Default
type is string.
-P key[:{s/d/l}],key[:{s/d/l}],...
As -p adding the declared keys to the default list.
-w key[:{s/d/l}]=value,key[:{s/d/l}]=value,... Where clause.
Set is only executed for grib messages matching all the key/value constraints. If a grib message does not match the constraints it
is copied unchanged to the output_grib_file. This behaviour can be changed setting the option -S. For each key a string (key:s) or
a double (key:d) or a long (key:l) type can be defined. Default type is string.
-7 Does not fail when the message has wrong length
-S Strict. Only grib messages matching all the constraints are copied to
the output file
-V Version.
-M Multi-grib support off. Turn off support for multiple fields in single grib message
-g Copy GTS header.
-G GRIBEX compatibility mode.
-f Force. Force the execution not to fail on error.
-v Verbose.
AUTHOR
This manpage has been autogenerated by Enrico Zini <enrico@debian.org>from the command line help of grib_set.
grib_set April 2009 GRIB_SET(1)