03-11-2012
Sorry I misread the data, I'll have a little think about this but not so hot with awk which is probably ideal for this.
Regards
Dave
9 More Discussions You Might Find Interesting
1. Ubuntu
Dear All,
I am new to this forum and please ignore my little knowledge :p
I have two types of data (a subset is given below)
data version 1:
439798 2 1
451209 1 2
508696 2 1
555760 2 1
582757 1 2
582889 1 2
691827... (2 Replies)
Discussion started by: evoll
2 Replies
2. Shell Programming and Scripting
Hi all,
I have 2 files:
second file
I want if entries in one file will match in other file. It shuld wite approve before it
so output shuld be (1 Reply)
Discussion started by: manigrover
1 Replies
3. Shell Programming and Scripting
Input file:
#data_131 0 >content..._* 1 >content..._at_+/97.20%
#data_137 0 >content..._* 1 >content..._at_+/97.20% 2 >seq..._* 3 >content..._at_+/97.20% 4 >content..._at_+/97.20%
#data_141 0 >content..._*
#data_150 0 >content..._* 1 >content..._at_+/97.20% 2 >seq..._* 3... (3 Replies)
Discussion started by: perl_beginner
3 Replies
4. Shell Programming and Scripting
Hi all
I have to compare two files and find common entries
First file is like this
XVY
CVY
ZYN
MNA
In second file I have to search these entries in even number of columns
5 XVY 7 hdfj 8 CVY 9
if there is common entries then out put shuld be
5 XVY(approved) 7 hdfj 8... (11 Replies)
Discussion started by: manigrover
11 Replies
5. UNIX for Dummies Questions & Answers
I am trying to extract common list of Organisms from different files
For example I took 3 files and showed expected result. In real I have more than 1000 files. I am aware about the useful use of awk and grep but unaware in depth so need guidance regarding it.
I want to use awk/ grep/ cut/... (7 Replies)
Discussion started by: macmath
7 Replies
6. Shell Programming and Scripting
Hi All,
I have two files like below:
File1
MYFILE_28012012_1112.txt|4
MYFILE_28012012_1113.txt|51
MYFILE_28012012_1114.txt|57
MYFILE_28012012_1115.txt|57
MYFILE_28012012_1116.txt|57
MYFILE_28012012_1117.txt|57
File2
MYFILE_28012012_1110.txt|57
MYFILE_28012012_1111.txt|57... (2 Replies)
Discussion started by: angshuman
2 Replies
7. Shell Programming and Scripting
Hello all,
I have 2 text files.
For example:
File1.txt contains data
A
B
C
D
****NEXT****
X
Y
Z
****NEXT****
L
M
N
and File2.txt contains data (13 Replies)
Discussion started by: vat1kor
13 Replies
8. Shell Programming and Scripting
Hi,
I have two files with the below values.
file1
305231921 1.0 ben/Ben_Determination_Appeals
1348791394 2.0 ben/Ben_Determination_Appeals]
1305231921 1.0 ben/Cancel_Refund_Payment_JLRS
1348791394 2.0 ben/Cancel_Refund_Payment_JLRS
1305231921 ... (2 Replies)
Discussion started by: Vikram_Tanwar12
2 Replies
9. Shell Programming and Scripting
Hi,
I have 10 files which needs to be print common words from those all files.
Is there any command to find out. (2 Replies)
Discussion started by: munna_dude
2 Replies
LEARN ABOUT CENTOS
ng_tty
NG_TTY(4) BSD Kernel Interfaces Manual NG_TTY(4)
NAME
ng_tty -- netgraph node type that is also a TTY hook
SYNOPSIS
#include <sys/types.h>
#include <sys/ttycom.h>
#include <netgraph/ng_tty.h>
DESCRIPTION
The tty node type is both a netgraph node type and a TTY hook.
The node has a single hook called hook. Incoming bytes received on the tty device are sent out on this hook, and frames received on hook are
transmitted out on the tty device. No modification to the data is performed in either direction. While the hook is installed on a tty, the
normal read and write operations are unavailable, returning EIO.
Incoming data is delivered directly to ng_tty via the tty bypass hook as a buffer pointer and length, this is converted to a mbuf and passed
to the peer.
The node supports an optional ``hot character''. If the driver can not deliver data directly to the tty bypass hook then each character is
input one at a time. If set to non-zero and bypass mode is unavailable, incoming data from the tty device is queued until this character is
seen. This avoids sending lots of mbufs containing a small number of bytes, but introduces potentially infinite latency. The default hot
character is 0x7e, consistent with hook being connected to a ng_async(4) type node. The hot character has no effect on the transmission of
data.
HOOKS
This node type supports the following hooks:
hook tty(4) serial data contained in mbuf structures, with arbitrary inter-frame boundaries.
CONTROL MESSAGES
This node type supports the generic control messages, plus the following:
NGM_TTY_SET_HOTCHAR
This command takes an integer argument and sets the hot character from the lower 8 bits. A hot character of zero disables queueing, so
that all received data is forwarded immediately.
NGM_TTY_GET_HOTCHAR
Returns an integer containing the current hot character in the lower eight bits.
NGM_TTY_SET_TTY
This command takes integer process ID and file descriptor of open tty and registers the tty hooks.
SHUTDOWN
This node shuts down when the corresponding device is closed.
SEE ALSO
ioctl(2), netgraph(4), ng_async(4), tty(4), ngctl(8)
HISTORY
The ng_tty node type was implemented in FreeBSD 4.0.
AUTHORS
Archie Cobbs <archie@FreeBSD.org>
Andrew Thompson <thompsa@FreeBSD.org>
BUGS
The serial driver code also has a notion of a ``hot character''. Unfortunately, this value is statically defined in terms of the line disci-
pline and cannot be changed. Therefore, if a hot character other than 0x7e (the default) is set for the ng_tty node, the node has no way to
convey this information to the serial driver, and sub-optimal performance may result.
BSD
December 25, 2008 BSD