02-15-2010
hope this reply
actually say
the one file is
kiss kisser
kill killer
asser ass
second file
kisser kiss
kill killer
hum hummer
difference of two files and also whether kiss and kisser is in $1,$2 (first file) but is in second file as opposite still they are same......
so ony diff
hum hummer
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
suppose one file
P1168S
P2150L
P85L
Q597R
R1097C
Another file
P2150L
P85L
Q597R
R1097C
R1379C
R1587K
Then output shud be
R1379C
R1587K
thanks (5 Replies)
Discussion started by: cdfd123
5 Replies
2. Shell Programming and Scripting
I have two files like this:
#FILE 1
ABCD 4322 26485
JMTJ 5311 97248
XMPJ 4321 58978
#FILE 2
ABCD 4321 26485
JMTJ 5311 97248
XMPJ 4321 68978
What to do: Compare the two files and find those lines that doesn't match. And have a new file like this:
#FILE 3
"from file 1"
ABCD 4322 26485... (11 Replies)
Discussion started by: kingpeejay
11 Replies
3. Shell Programming and Scripting
I have learned file comparison from my previous post here. Then, it is comparing the whole line. Now, i have a new problem.
I have two files with 3 columns separated with a "|". What i want to do is to compare the second and third column of file 1, and the second and third column of file 2. And... (4 Replies)
Discussion started by: kingpeejay
4 Replies
4. Shell Programming and Scripting
one file
. . importing table employee 119
. . importing table jobs 1
2nd file
. . importing table employee 120
. . importing table jobs 1
and would like... (2 Replies)
Discussion started by: jhonnyrip
2 Replies
5. Shell Programming and Scripting
Dear all,
I have some problem here. I want to detect the differences between two text files and count the number of differences between them.
Such as file1.txt i have : I am new in perl.
and file2.txt i have : I ma enw in pearl.
So it should return me 3 as the number of differences.
So... (2 Replies)
Discussion started by: branred
2 Replies
6. Shell Programming and Scripting
For example, in this command:
ls /etc/rc0.d/ -print
ls /etc/rc0.d/ -printfThe outputs are quite different, why? (7 Replies)
Discussion started by: Henryyy
7 Replies
7. Shell Programming and Scripting
Hello,
I have two files file 1 and file 2 each having result of a query on certain database tables and need to compare for Col1 in file1 with Col3 in file2, compare Col2 with Col4 and output the value of Col1 from File1 which is a) not present in Col3 of File2 b) value of Col2 is different from... (2 Replies)
Discussion started by: RasB15
2 Replies
8. Shell Programming and Scripting
Hello,
I have two text files, each with a single column,
file 1:
124152970
123899868
123476854
54258288
123117283
file 2:
124152970
123899868
54258288
123117283
122108330 (5 Replies)
Discussion started by: LMHmedchem
5 Replies
9. Shell Programming and Scripting
Hi
PRIM_SEQ=`some sql code`
and output of PRIM_SEQ is like below
120
130
STB_SEQ=`some sql code`
and output of STB_SEQ is like below
115
110
i need to compare this two variables output ( decimal numbers)
1) What I want to do is to compare every number in the PRIM_SEQ with... (8 Replies)
Discussion started by: amar1208
8 Replies
10. UNIX for Beginners Questions & Answers
compare two variables and print the difference
i have two variables
X1=rac1,rac2
Y1=rac2,rac3
output=rac1,rac3
Use code tags to wrap code fragments or data samples. (1 Reply)
Discussion started by: jhonnyrip
1 Replies
LEARN ABOUT DEBIAN
slattach
SLATTACH(8) SLATTACH(8)
NAME
slattach - attach a network interface to a serial line
SYNOPSIS
slattach [-dehlLmnqv] [-c command] [-p proto] [-s speed] [tty]
DESCRIPTION
Slattach is a tiny little program that can be used to put a normal terminal ("serial") line into one of several "network" modes, thus
allowing you to use it for point-to-point links to other computers.
OPTIONS
[-c command]
Execute command when the line is hung up. This can be used to run scripts or re-establish connections when a link goes down.
[-d] Enable debugging output. Useful when determining why a given setup doesn't work.
[-h] Exit when the carrier is lost. This works on both /dev/tty and /dev/cua devices by directly monitoring the carrier status every 15
seconds.
[-v] Enable verbose output. Useful in shell scripts.
[-q] Operate in quiet mode - no messages at all.
[-l] Create an UUCP-style lockfile for the device in /var/lock.
[-n] Equivalent to the "mesg n" command.
[-m] Do not initialize the line into 8 bits raw mode.
[-e] Exit right after initializing device, instead of waiting for the line to hang up.
[-L] Enable 3 wire operation. The terminal is moved into CLOCAL mode, carrier watching is disabled.
[-p proto]
Set a specific kind of protocol to use on the line. The default is set to cslip, i.e. compressed SLIP. Other possible values are
slip (normal SLIP), adaptive (adaptive CSLIP/SLIP), ppp (Point-to-Point Protocol) and kiss (a protocol used for communicating with
AX.25 packet radio terminal node controllers). The special argument tty can be used to put the device back into normal serial oper-
ation. Using 'ppp' mode is not normally useful as ppp requires an additional ppp daemon pppd to be active on the line. For kiss
connections the axattach program should be used.
[-s speed]
Set a specific line speed, other than the default.
If no arguments are given, the current terminal line (usually: the login device) is used. Otherwise, an attempt is made to claim the indi-
cated terminal port, lock it, and open it.
FILES
/dev/cua* /var/lock/LCK.*
BUGS
None known.
SEE ALSO
axattach(8), dip(8) pppd(8), sliplogin(8).
AUTHORS
Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
Alan Cox, <Alan.Cox@linux.org>
Miquel van Smoorenburg, <miquels@drinkel.ow.org>
George Shearer, <gshearer@one.net>
Yossi Gottlieb, <yogo@math.tau.ac.il>
10 Oct 2006 SLATTACH(8)