I did search the posts for info on this and while there were some in the ballpark, none addressed this specifically. (also I tried to post this once it said I was logged out, so hopefully I'm not sending a duplicate here).
I have a set of files (250 +/-) where I need to delete the first "$x"... (4 Replies)
Source data file from oracle, terminated by ",". 'Cause some of fields have \r\n, then those lines were splitted into multiple lines in the expoted data file. Just vi this file, and found ^M. How to concatenate these line into one if it has a ^M at then end.
thanks, (7 Replies)
Hi
I have the fixed width flat file having the following data
12345aaaaaaaaaabbbbbbbbbb
12365sssssssssscccccccccc
12365sssss
12367ddddddddddvvvvvvvvvv
12367 vvvvv
Here the first column is length 5 second is length 10 third is length 10
if the second or third column exceeds... (3 Replies)
Hi
I have two lines of data formatted as displayed below
shop, price, remark, date
a,#N/A,order to -fd, 20091011
and would like it to be
shop:a
price:#N/A
remark:order to -fd
date:20091011
How can I do it?
Many thanks (2 Replies)
Hi guys
in input every 1st line 1st ID value located in 2nd line 1st occurrence .
I need to print them down accordingly..
Thanx in advance
input
rs1040480_XXXXX.value rs1040481_YYYYY.value rs1040482_TXXXX.value
0.7408157 0.3410044 0.7408157 ... (7 Replies)
Hi Experts,
This is my input file.
input.txt
0 /dev/fd
25 /var
1 /tmp
1 /var/run
1. If this file has single line, then leave it, print the single line
else
merge the 4 lines above into 1 line as below
e.g (6 Replies)
Hi,
I'm not a expert in shell programming, so i've come here to take help from u gurus.
I'm trying to tailor a csv file that i got to make it work for the LOAD FROM command.
I've a datatable csv of the below format -
--in file format
xx,xx,xx ,xx , , , , ,,xx,
xxxx,, ,, xxx,... (11 Replies)
Hi, I have a bash script and I am looking for a command that will merge specific lines together.
Sample Data:
registration time = 1300890272
Id = 1
setd = 0
tagunt = 26
tagId=6, length=8, value=
tagId=9, length=5, value=
tagId=7, length=2, value=
tagId=16, length=2, value=
tagId=32,... (8 Replies)
Hello
I have a file with
CAR 23
COLOR 12
CAR 44
COLOR 12
CAR 55
COLOR 20
SIZE BIG
CAR 56
CAR 57
COLOR 11
How can merge the CAR and the COLOR + SIZE (if there are COLOR,SIZE)
CAR 23 COLOR 12
CAR 44 COLOR 12
CAR 55 COLOR 20 SIZE BIG
CAR 56
CAR 57 COLOR 11
Every line begin in... (4 Replies)
Hello
I have an input as below
this is test
we
are(
)
one
end of description
I am looking for output
this is test
we are () one
end of description (2 Replies)
Discussion started by: Tomlight
2 Replies
LEARN ABOUT CENTOS
packet.pkt
PACKET.PKT(1) packet.pkt 1.0.1 PACKET.PKT(1)NAME
packet.pkt - Pkt module
DESCRIPTION
Provides the object for a packet and the string representation of the packet. This object has an attribute for each of the layers in the
packet so each layer can be accessed directly instead of going through each layer. To access the nfs layer object you can use 'x.nfs'
instead of using 'x.ethernet.ip.tcp.rpc.nfs' which would very cumbersome to use. Also, since NFS can be used with either TCP or UDP it
would be harder to to access the nfs object independently or the protocol.
Packet object attributes:
Pkt(
record = Record information (frame number, etc.)
ethernet = ETHERNET II (RFC 894) object
ip = IPv4 object
tcp = TCP object
rpc = RPC object
nfs = NFS object
)
CLASSES
class Pkt(baseobj.BaseObj)
Packet object
Usage:
from packet.pkt import Pkt
x = Pkt()
Methods defined here:
---------------------
__str__(self)
String representation of object
The representation depends on the verbose level set by debug_repr(). If set to 0 the generic object representation is returned. If
set to 1 the representation of is condensed into a single line. It contains, the frame number, IP source and destination and/or the
last layer:
'1 0.386615 192.168.0.62 -> 192.168.0.17 TCP 2049 -> 708, seq: 3395733180, ack: 3294169773, ACK,SYN'
'5 0.530957 00:0c:29:54:09:ef -> ff:ff:ff:ff:ff:ff, type: 0x806'
'19 0.434370 192.168.0.17 -> 192.168.0.62 NFS v4 COMPOUND4 call SEQUENCE;PUTFH;GETATTR'
If set to 2 the representation of the object is a line for each layer:
'Pkt(
RECORD: frame 19 @ 0.434370 secs, 238 bytes on wire, 238 bytes captured
ETHERNET: 00:0c:29:54:09:ef -> e4:ce:8f:58:9f:f4, type: 0x800(IPv4)
IP: 192.168.0.17 -> 192.168.0.62, protocol: 6(TCP), len: 224
TCP: src port 708 -> dst port 2049, seq: 3294170673, ack: 3395734137, len: 172, flags: ACK,PSH
RPC: CALL(0), program: 100003, version: 4, procedure: 1, xid: 0x1437d3d5
NFS: COMPOUND4args(tag='', minorversion=1, argarray=[nfs_argop4(argop=OP_SEQUENCE, ...), ...])
)'
SEE ALSO baseobj(1)BUGS
No known bugs.
AUTHOR
Jorge Mora (mora@netapp.com)
NFStest 1.0.2 10 April 2013 PACKET.PKT(1)