10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
sxsaaas (3 Replies)
Discussion started by: VikrantD
3 Replies
2. Shell Programming and Scripting
I've got a file that looks like this (spaces before first entries intentional):
12345650-000005000GL140227 ANNUAL HELC FEE EN
22345650-000005000GL140227 ANNUAL HELC FEE EN
32345650-000005000GL140227 ANNUAL HELC FEE EN
I want to read through the file line by line,... (6 Replies)
Discussion started by: Scottie1954
6 Replies
3. Shell Programming and Scripting
I have a process which writes lots of output to the screen and am capturing it to a file.
But the issue is that there are few lines which repeat every second which is causing the file size to be enormous. I am trying to filter out and then run the command but its not working.
Can you confirm... (7 Replies)
Discussion started by: rajkumarme_1
7 Replies
4. Programming
Input_file
#tmp_2
werweraewghe
@tmp_2
123sdfs57a
#tmp_1
aewrgheheghe
@tmp_1
457awrerfa87
#tmp_4
trtyrghe
@tmp_4
8898rtyr2
reference_file
#tmp_4
#tmp_1 (14 Replies)
Discussion started by: cpp_beginner
14 Replies
5. Shell Programming and Scripting
Hi All,
I have a file, let's call it "info.tmp" that contains data like this ..
ABC123456
PCX333445
BCD789833
I need to read "info.tmp" and for each line add strings in a way that the final output is
put /logs/ua/dummy.trigger 'AAA00001.FTP.XXX.BLA03A01.xxxxxx(+1)'
where XXX... (5 Replies)
Discussion started by: Andy_ARG
5 Replies
6. UNIX for Dummies Questions & Answers
Hello-
I am trying to view a file which is quite large. However, whenever I do 'cat (file name)' it shows me just the half.. I am using Putty to access my server.
Also, is it possible to edit a file from a unix system on a 'Gedit for Windows" text editor?
Thanks (7 Replies)
Discussion started by: DallasT
7 Replies
7. Shell Programming and Scripting
Hi -
I have a file containing data like :-
cn=tommy,cn=users,c=uk
passwordexpirydate=20100530130623z
cn=jane,cn=users,c=uk
passwordexpirydate=20100423140734z
cn=michael,cn=users,c=uk
passwordexpirydate=20100331020044z
I want to end up with a file that looks like:-... (6 Replies)
Discussion started by: sniper57
6 Replies
8. Emergency UNIX and Linux Support
<key>ExcludeSimpleHostnames</key>
<integer>0</integer>
<key>FTPPassive</key>
Need simple command that will change the 0 to a 1 in this file when I grep it, but only for this integer key directly after the ExcludeSimpleHostnames key.
I got this output code... (8 Replies)
Discussion started by: glev2005
8 Replies
9. Shell Programming and Scripting
hi all,
I have this file with some user data.
example:
$cat myfile.txt
FName|LName|Gender|Company|Branch|Bday|Salary|Age
aaaa|bbbb|male|cccc|dddd|19900814|15000|20|
eeee|asdg|male|gggg|ksgu|19911216|||
aara|bdbm|male|kkkk|acke|19931018||23|
asad|kfjg|male|kkkc|gkgg|19921213|14000|24|... (4 Replies)
Discussion started by: srimal
4 Replies
10. Shell Programming and Scripting
Hello all,
I need to run snoop command for a period of time (a day) and extract remote host column from it to find out who is accessing my server. When I run the following on the command line it works
snoop -port 22 | awk '{print $3}'
but when I do
snoop -port 22 | awk '{print $3}' | while... (2 Replies)
Discussion started by: afadaghi
2 Replies
TRACERTSTATS(1) User Commands TRACERTSTATS(1)
NAME
tracertstats - perform simple filter based analysis on a trace
SYNOPSIS
tracertstats [ -f | --filter bpf ] [ -i | --interval interval ] [ -c | --count count ] [ -o | --output-format csv,txt,png,html ] [ -m |
--merge-inputs ] inputuri...
tracertstats -H|--libtrace-help
DESCRPTION
tracertstats takes a list of bpf expressions and outputs the number of packets and bytes that match that expression every interval seconds,
or count packets.
-f bpf-filter
--filter bpf-filter
Add another "bpf filter"
-i interval
--interval interval
Output results every interval seconds.
-c count
--count count
Output results every count packets.
-m
--merge-inputs
Treats all inputs as a single input, resulting a single unified output rather than an output for each input. Works best with traces
that are consecutive to create a single CSV, for instance.
-o format
--output-format format
Selects the output format.
txt Human readable text. This is the default output format which provides output easily understood by a human. This format has
the disadvantage that it takes up quite a bit of horizontal space.
csv Comma Seperated Values. This is suitable for further analysis in a spreadsheet, or other program.
png PNG Graphic. Produces a fairly incomprehensible png graph. This relies on gdc being available at compile time.
html This produces output suitable for display to a human in a webbrowser.
EXAMPLES
tracertstats --filter 'host sundown'
--filter 'port http'
--filter 'port ftp or ftp-data'
--filter 'port smtp'
--filter 'tcp[tcpflags] & tcp-syn!=0'
--filter 'not ip'
--filter 'ether[0] & 1 == 1'
--filter 'icmp[icmptype] == icmp-unreach'
--output-format html
erf:/traces/trace1.gz
erf:/traces/trace2.gz
LINKS
More details about tracertstats (and libtrace) can be found at http://www.wand.net.nz/trac/libtrace/wiki/UserDocumentation
SEE ALSO
libtrace(3), tracemerge(1), tracesplit(1), tracesplit_dir(1), tracefilter(1), traceconvert(1), tracereport(1), tracepktdump(1),
traceanon(1), tracesummary(1), traceconvert(1), tracereplay(1), tracediff(1), traceends(1), tracetopends(1)
AUTHORS
Perry Lorier <perry@cs.waikato.ac.nz>
tracertstats (libtrace) November 2006 TRACERTSTATS(1)