Hi i have a file which has values seperated by "," as shown below and I want to transpose for every doc_id in one row.
Input:
DOC_ID,KEYWORD
105,REGISTROS
105,GEOLOGIA
105,NUCLEOS
105,EXPEDIENTE
105,PROGRAMAS
10025,EXPEDIENTE
10025,LOCALIZACIONES
10025,OFICIOS
10025,PROGRAMAS... (4 Replies)
Hi,
I have a tab-delimited file as follows:
1 1 2 2 3 3 4 4
a a b b c c d d
5 5 6 6 7 7 8 8
e e f f g g h h
9 9 10 10 11 11 12 12
i i j j k k l l
13 13 14 14 15 15 16 16
m m n n o o p p
The output I need is:
1 1 a a 5 5 e e 9 9 i i 13... (5 Replies)
Hi there,
Below is sample three rows which i need transpose into multiple rows.
By keeping first 2 fields static and split them into multiple rows depend following date field. Each into seperate rows.
Sample code:
... (6 Replies)
Hi Folks,
Iam a kinda newbie to unix shell scripting, the scenario is i have a text file containing the following info
Charlie chicago 15
Charlie newyork 26
jonny chicago 14
jonny newyork 15
joe chicago 15
joe newyork 18output should be
Name chicago ... (3 Replies)
Hi All,
In shell, I have below data coming from some some text file as below:
. 351706 5861.8 0.026 0.012 12.584 0.026 0.012 12.582 0.000 0.000 0.000
Now i need the above data to be transposed as below
351706... (16 Replies)
I'm using the testawk.awk from the following thread
https://www.unix.com/shell-programming-and-scripting/18897-row-column-transpose.htmlI'm getting the following output
fieldname1 data1
fieldname2 data2
fieldname3 data3
How can I get like this instead
1 fieldname1 data1
2 fieldname2 data2... (1 Reply)
Hi,
I have data in form of
A ram
B shyam
C seeta
D geeta
A bob
B methew
C Richad
D Mike
and i want it in this form.
A B C D
ram shyam seeta geeta
bob methew Richard Mike.
please help by providing the scripting for this. (3 Replies)
Discussion started by: ricbha
3 Replies
LEARN ABOUT PHP
ng_fec
NG_FEC(4) BSD Kernel Interfaces Manual NG_FEC(4)NAME
ng_fec -- netgraph Fast EtherChannel node
SYNOPSIS
#include <netgraph/ng_fec.h>
DESCRIPTION
The fec node implements Ethernet port trunking using the ``Cisco Fast EtherChannel'' protocol. Upon creation, a fec node creates a network
interface associated with it. Interfaces are named ``fec0'', ``fec1'', etc. New nodes take the first available unit.
HOOKS
The fec node accepts any hooks. However it does not use them. Under normal operation, a fec node should not have any hooks.
CONTROL MESSAGES
Interface membership in the FEC group is configured with the following control messages:
NGM_FEC_ADD_IFACE (``add_iface'')
Attach interface to the FEC group. The target interface name is passed as a string argument.
NGM_FEC_DEL_IFACE (``del_iface'')
Remove interface from the trunk. The target interface name is passed as a string argument.
The following control messages define the forwarding method for a node:
NGM_FEC_SET_MODE_MAC (``set_mode_mac'')
Forwarding decisions will be based on the link-layer MAC address of the destination.
NGM_FEC_SET_MODE_INET (``set_mode_inet'')
Forwarding decisions will be based on the IP address of the destination.
SHUTDOWN
This node shuts down upon receipt of a NGM_SHUTDOWN control message.
EXAMPLES
The following example script creates an fec node, attaches four Ethernet interfaces to it and sets the forwarding method to be IP-address
based:
/usr/sbin/ngctl -f- << SEQ
mkpeer fec dummy fec
msg fec0: add_iface "dc0"
msg fec0: add_iface "dc1"
msg fec0: add_iface "dc2"
msg fec0: add_iface "dc3"
msg fec0: set_mode_inet
SEQ
SEE ALSO netgraph(4)HISTORY
The fec node type was implemented in FreeBSD 5.0.
AUTHORS
The fec node was written by Bill Paul <wpaul@FreeBSD.org>. This manual page was written by Gleb Smirnoff <glebius@FreeBSD.org>.
BSD July 22, 2004 BSD