i have single column which is starting with same string(many number of rows)
i have to convert each into a single row.how can i do that?
laknar
std
mes
23
55
laknar
isd
phone no
address
amount
99
I have to convert above like below.
laknar|std|mes|23|55
laknar|isd|phone... (3 Replies)
Hi all,
I need to convert this file having just one column into two column file
current file:
a
15
b
21
c
34
d
48
e
10
wanted:
a 15
b 21
c 34 (15 Replies)
Hi,
Can anyone suggest quick way to get desired output?
Sample input file content:
A 12 9
A -0.3 2.3
B 1.0 -4
C 34 1000
C -111 900
C 99 0.09
Output required:
A 12 9 -0.3 2.3
B 1.0 -4
C 34 1000 -111 900 99 0.09
Thanks (3 Replies)
Hi All,
My requisite is to split a single column of phonemes seperated by spaces into multiple rows.
my input file is:
a
dh
u
th
a
qn
ch
A
v
U
r
k
my o/p should be like:
adhu a dh u (3 Replies)
Dear fellows, I need your help.
I'm trying to write a script to convert a single column into multiple rows.
But it need to recognize the beginning of the string and set it to its specific Column number.
Each Line (loop) begins with digit (RANGE).
At this moment it's kind of working, but it... (6 Replies)
Hi .. anyone can you help me ?
i need to convert text below into multiple columns
interface; GigabitEthernet0/0/0/0
description; TRUNK_PE-D2-JT2-VPN_Gi0/0/0/0_TO_ME4-A-JKT-JT_4/1/1_1G
mtu 9212
negotiation auto
interface; GigabitEthernet0/0/0/0.11
description; tes
encapsulation;... (1 Reply)
Hi,
i am having an HDFS file which is comma seperated, i need to transpose from rows to column only the header columns
text.csv
cnt,name,place
1,hi,nz
2,hello,aus
I need
cnt,
name,
place
while using below command in hadoop getting the error
hadoop fs -fmt -1 text.csv (0 Replies)
Hello Everyone,
I am very new to the world of regular expressions. I am trying to use grep/sed for the following:
Input file is something like this and there are multiple such files:
abc
1
2
3
4
5
***END***
abc
6
7
8
9
***END***
abc
10 (2 Replies)
Discussion started by: shellnewuser
2 Replies
LEARN ABOUT FREEBSD
ng_pred1
NG_PRED1(4) BSD Kernel Interfaces Manual NG_PRED1(4)NAME
ng_pred1 -- Predictor-1 PPP compression (RFC 1978) netgraph node type
SYNOPSIS
#include <sys/types.h>
#include <netgraph/ng_pred1.h>
DESCRIPTION
The pred1 node type implements the Predictor-1 sub-protocols of the Compression Control Protocol (CCP).
The node has two hooks, comp for compression and decomp for decompression. Only one of them can be connected at the same time, specifying
node's operation mode. Typically that hooks would be connected to the ng_ppp(4) node type hook of the same name.
HOOKS
This node type supports the following hooks:
comp Connection to ng_ppp(4) compress hook. Incoming frames are compressed and sent back out the same hook.
decomp Connection to ng_ppp(4) decompress hook. Incoming frames are decompressed and sent back out the same hook.
Only one hook can be connected at the same time, specifying node's operation mode.
CONTROL MESSAGES
This node type supports the generic control messages, plus the following:
NGM_PRED1_CONFIG (config)
This command resets and configures the node for a session (i.e., for compression or decompression). This command takes a struct
ng_pred1_config as an argument:
struct ng_pred1_config {
u_char enable; /* node enabled */
};
The enable field enables traffic flow through the node.
NGM_PRED1_RESETREQ (resetreq)
This message contains no arguments, and is bi-directional. If an error is detected during decompression, this message is sent by the
node to the originator of the NGM_PRED1_CONFIG message that initiated the session. The receiver should respond by sending a PPP CCP
Reset-Request to the peer.
This message may also be received by this node type when a CCP Reset-Request or Reset-Ack is received by the local PPP entity. The node
will respond by flushing its compression state so the sides can resynchronize.
NGM_PRED1_GET_STATS (getstats)
This control message obtains statistics for a given hook. The statistics are returned in struct ng_pred1_stats:
struct ng_pred1_stats {
uint64_t FramesPlain;
uint64_t FramesComp;
uint64_t FramesUncomp;
uint64_t InOctets;
uint64_t OutOctets;
uint64_t Errors;
};
NGM_PRED1_CLR_STATS (clrstats)
This control message clears statistics for a given hook.
NGM_PRED1_GETCLR_STATS (getclrstats)
This control message obtains and clears statistics for a given hook.
SHUTDOWN
This node shuts down upon receipt of a NGM_SHUTDOWN control message, or when hook have been disconnected.
SEE ALSO netgraph(4), ng_ppp(4), ngctl(8)
D. Rand, PPP Predictor Compression Protocol, RFC 1978.
W. Simpson, The Point-to-Point Protocol (PPP), RFC 1661.
AUTHORS
Alexander Motin <mav@alkar.net>
BUGS
Due to nature of netgraph PPP implementation there are possible race conditions between data packet and ResetAck CCP packet in case of packet
loss. As result, packet loss can produce bigger performance degradation than supposed by protocol.
BSD December 24, 2006 BSD