07-17-2009
The text file is tab delimited.
Here is the sample file:
File A:
Row1: 6666; D000; $12.00405; $234.08976; $212.09876; the number goes on for another 9 columns
Row2: 6666; D015; $12.56745; $456.34567; $324; 12345;....
File b:
Row1: 6666; D015; $12.56745; $456.34567; $324; 12345;....
Row2: 6666; D000; $12.00405; $234.08976; $212.09876;....
So as you can see, the first two values are the unique row identifier. With that, I need to compare all the other values.
Hope this is clear.
Thanks.
---------- Post updated 07-17-09 at 10:09 AM ---------- Previous update was 07-16-09 at 11:38 AM ----------
Hi people, any help would be appreciated on this.. Thanks!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I'm trying to compare the value in a field to the value in a variable using awk. This works:
awk '$7 == "101"'but this is what I want (and it doesn't work):
value=101
awk '$7 == "$value"'
Any help or insight on this would be great. Thanks in advance. (1 Reply)
Discussion started by: goodbenito
1 Replies
2. Shell Programming and Scripting
Hi.
I have a tab separated file that has a couple nearly identical lines. When doing:
sort file | uniq > file.new
It passes through the nearly identical lines because, well, they still are unique.
a)
I want to look only at field x for uniqueness and if the content in field x is the... (1 Reply)
Discussion started by: rocket_dog
1 Replies
3. Shell Programming and Scripting
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)
Discussion started by: right_coaster
4 Replies
4. Shell Programming and Scripting
It seems like a common task, but I haven't been able to find the solution.
vitallog.txt
1310,John,Hancock
13211,Steven,Mills
122,Jane,Doe
138,Thoms,Doe
1500,Micheal,May
vitalinfo.txt
12122,Jane,Thomas
122,Janes,Does
123,Paul,Kite
**OUTPUT**
vitalfiltered.txt
12122,Jane,Thomas... (2 Replies)
Discussion started by: charles33
2 Replies
5. UNIX for Dummies Questions & Answers
I have two files in UNIX.
1st file is Entity and Second File is References. 1st File has only one column named Entity ID and 2nd file has two columns Entity ID | Person ID.
I want to produce a output file where entity id's are matching in both the files.
Entity File
624197
624252
624264... (4 Replies)
Discussion started by: PRS
4 Replies
6. Shell Programming and Scripting
Hi Friends,
I am new to Shell Scripting and need your help in the below situation.
- I have two files (File 1 and File 2) and the contents of the files are mentioned below.
- "Application handle" is the common field in both the files.
(NOTE :- PLEASE REFER TO THE ATTACHMENT "Compare files... (2 Replies)
Discussion started by: Santoshbn
2 Replies
7. Shell Programming and Scripting
Hi Friends,
Need Help. I have file1.txt as
File1.txt
|123|A|7267|Hyder|Cross|Sell|7801
|995|A|7051|2008|Lunar|New|Year|Promotion|7801
|996|A|7022|Q108|Targ|Prospect|&|SSCC|Savings|Promo|7801
|997|A|7182|Q1|Feb-Apr|08|Credit|ITA|PA|SBA|Campaign|7801
File2.txt... (7 Replies)
Discussion started by: i150371485
7 Replies
8. Shell Programming and Scripting
Hi Freinds,
I have 2 files . one is source.txt and second one is target.txt. I want to keep source.txt as baseline and compare target.txt. please find the data in 2 files and Expected output.
Source.txt
1|HYD|NAG|TRA|34.5|1234
2|CHE|ESW|DES|36.5|134
3|BAN|MEH|TRA|33.5|234... (5 Replies)
Discussion started by: i150371485
5 Replies
9. Shell Programming and Scripting
need a one liner to compare 2nd and 3rd field and print values that are not matched in 2nd field
Input
col 2 col 3
1.1.1.1 11.11.11.11
8.8.8.8 0.0.0.0
3.3.3.3 2.2.2.2
7.7.7.7 3.3.3.3
5.5.5.5 1.1.1.1
4.4.4.4
6.6.6.6
9.9.9.9
output
7.7.7.7 ... (12 Replies)
Discussion started by: chidori
12 Replies
10. Shell Programming and Scripting
I am having two csv files i need to compare these files and the output file should have the information of the differences at the field level.
For Example,
File 1:
A,B,C,D,E,F
1,2,3,4,5,6
File 2:
A,C,B,D,E,F
1,2,4,5,5,6
out put file: (12 Replies)
Discussion started by: karingulanagara
12 Replies
LEARN ABOUT CENTOS
curvetun
curvetun(8) netsniff-ng-toolkit curvetun(8)
NAME
curvetun - lightweight curve25519-based multiuser IP tunnel
SYNOPSIS
curvetun [-d|--dev <tun>][-x|--export][-C|--dumpc][-S|--dumps] [-k|--keygen][-c|--client [<alias>]][-s|--server][-N|--no-logging]
[-p|--port <num>][-t|--stun <server>][-4|--ipv4][-6|--ipv6] [-v|--version][-h|--help]
DESCRIPTION
curvetun embeds a client and a server to build and manage multiuser IP tunnels using Elliptic Curve Cryptography (ECC)
EXAMPLES
curvetun --keygen
Generate public/private keypair. This needs to be done before to get things started.
curvetun --export
Export public data to remote servers
curvetun --server -4 -u -N --port 6666 --stun stunserver.org
Start a UDP IPv4 curvetun server on port 6666. Use stunserver.org as STUN server.
curvetun --client=ethz
Start curvetun client using the profile called 'ethz'
OPTIONS
-k|--keygen
Generate public/private keypair.
-x|--export
Export your public data for remote servers.
-C|--dumpc
Dump parsed clients.
-S|--dumps
Dump parsed servers.
-D|--nofork
Do not daemonize.
-d|--dev <tun>
Networking tunnel device, e.g. tun0.
-c|--client [<alias>]
Client mode, server alias optional.
-s|--server
Server mode.
-N|--no-logging
Disable server logging (for better anonymity).
-p|--port <num>
Port number (mandatory).
-t|--stun <server>
Show public IP/Port mapping via STUN.
-u|--udp
Use UDP as carrier instead of TCP.
-4|--ipv4
Tunnel devices are IPv4.
-6|--ipv6
Tunnel devices are IPv6.
-v|--version
Print version.
-h|--help
Print help text and lists all options.
AUTHOR
Written by Daniel Borkmann <daniel@netsniff-ng.org> and Emmanuel Roullit <emmanuel@netsniff-ng.org>
DOCUMENTATION
Documentation by Emmanuel Roullit <emmanuel@netsniff-ng.org>
BUGS
Please report bugs to <bugs@netsniff-ng.org>
2012-06-29 curvetun(8)