I am trying to split the following output into two columns, where each column has Source: Destination:
OUTPUT TO FILTER
I am attempting to use the below condition ORS=NR%2?FS:RS (If NR%2, then TRUE condition - FS - default space, else FALSE condition - RS - default \n) however it does not work.
DESIRED OUTPUT
Can I please get some guidance around what is incorrect?
Have a column "address" which is combination of city, region and postal code like.
Format is : city<comma><space>region<space>postal code
abc, xyz 123456
All these three city, region and postal code are not mandatory. There can be any one of the above. In that case a nell... (2 Replies)
hey guys...
Im looking to do the following:
1
2
3
4
5
6
7
8
9
Change to:
1 4 7
2 5 8
3 6 9
Did use | perl -lpe'$\=$.%3?$":"\n"' , but it doesnt give me the matrix i want. (3 Replies)
Hey everyone,
I have an issue with a client that is passing me a list of values in one column, and occasionally the combination of all the values results in more than an 255 character string. My DB has a 255 character limit, so I am looking to take the column (comma delimited file), and if it... (1 Reply)
Hi,
I need help to split a long text in a column which is separated by ; and i need to print them out in multiple columns. My input file is tab-delimited and has 11 columns as below:-
aRg02004 21452 asdfwf 21452 21452 4.6e-29 5e-29 -1 3 50 ffg|GGD|9009 14101.10 High class -node. ; ffg|GGD|969... (3 Replies)
Hi,
I have a similar input format-
A_1 2
B_0 4
A_1 1
B_2 5
A_4 1
and looking to print in this output format with headers. can you suggest in awk?awk because i am doing some pattern matching from parent file to print column 1 of my input using awk already.Thanks!
letter number_of_letters... (5 Replies)
Hi,
I have a text file 'Item_List.txt' containing only 1 column. This column lists different products, each separated by the same generic string header "NEW PRODUCT, VERSION 1.1". After this the name of the product is given, then a delimiter string "PRODUCT FIELD", and then the name of the... (11 Replies)
Hi Experts,
Please bear with me, i need help
I am learning AWk and stuck up in one issue.
First point : I want to sum up column value for column 7, 9, 11,13 and column15 if rows in column 5 are duplicates.No action to be taken for rows where value in column 5 is unique.
Second point : For... (1 Reply)
I want to split this with every 5 or 50 depend on how much data the file will have. And remove the comma on the end
Source file will have
001,0002,0003,004,005,0006,0007,007A,007B,007C,007E,007F,008A,008C
Need Output from every 5 tab and remove the comma from end of each row
... (4 Replies)
Discussion started by: ranjancom2000
4 Replies
LEARN ABOUT DEBIAN
flow-print
flow-print(1) General Commands Manual flow-print(1)NAME
flow-print -- Display flows in formatted ASCII.
SYNOPSIS
flow-print [-hlnpw] [-d debug_level] [-f format]
DESCRIPTION
The flow-print utility will display flow data in ASCII using pre-defined formats selectable with -f.
Some of the less descriptive column headers are defined below
Header Description
-------------------------------
Sif Source Interface ifIndex.
DiF Destination Interface ifIndex.
Pr Protocol.
P Protocol.
SrcP Source Port.
DstP Destination Port.
Pkts Packets.
Octets Octets (Bytes).
Active Time in ms the flow was active.
B/Pk Bytes per Packet.
Ts Type of Service.
Fl Flags, for TCP the cumulative or of the TCP control bits.
srcAS Source AS.
dstAS Destination AS.
Start Start time of the flow.
End End time of the flow.
router_sc V7 IP address of router producing shorcuts.
peer_nexthop V6 IP address of peer next hop IP address.
encap i/o Version 6 only. Encapsulation size in/out
duration Time in ms the flow was active.
input Input Interface ifIndex.
output Output Interface ifIndex.
flows Number of aggregated flows.
mTos V8.x ToS of pkts that exceeded the contract.
xpackets V8.x Packets that exceed the contract.
OPTIONS -d debug_level
Enable debugging.
-f format Select format. The default is appropriate for the export type of the flow data. Available formats are:
0 1 line, interfaces, hex ports
1 2 line (includes timing and flags)
2 2 line candidate TCP syn attack flows
3 1 line, no interfaces, decimal ports
4 1 line with AS number
5 1 line, 132 column
6 show ip accounting emulation
7 1 line, 132 column +router_id
8 1 line, 132 column +encapsulation
9 1 line with tag values
10 AS aggregation
11 Protocol Port aggregation
12 Source Prefix aggregation
13 Destination Prefix aggregation
14 Prefix aggregation
15 Destination aggregation (Catalyst)
16 Source Destination aggregation (Catalyst)
17 Full Flow (Catalyst)
18 ToS AS Aggregation
19 ToS Proto Port aggregation
20 ToS Source Prefix aggregation
21 ToS Destination Prefix aggregation
22 ToS Prefix Aggregation
23 ToS Prefix Port aggregation
24 Full (Catalyst)
-h Display help.
-l Unbuffer output.
-n Use symbolic names where appropriate.
-p Display header information.
-w Wide output.
EXAMPLES
Display flows in flowfile
flow-print < flowfile
FILES
Configuration files:
Symbols - /etc/flow-tools/sym/*.
BUGS
None known.
AUTHOR
Mark Fullmer maf@splintered.net
SEE ALSO flow-tools(1)flow-print(1)