What exactly is going wrong? Do you want byte counts or char counts? As to awk, my version reports the same byte count as does wc -c:
(You'll have to count the two <NL> chars in)
As to your awk function - wc needs an input file, so it won't count the stringtocheck variable...
Hi,
I have a non-ascii character (Ŵ), which can be represented in UTF-8 encoding as equivalent hex value (\xC5B4). Is there a function in unix to convert this hex value back to display the charcter ? (10 Replies)
Hi
this question applies to Solaris 8,9,10 and opensolaris as in my environment it applies to all of these
Is there a limit on the size of the username (in /etc/passwd) or indeed does there come a point where, like the 8 character limitation of passwords, the system receives the input but... (6 Replies)
Hi there !
I need to treat files with variable line length, and process the tab-delimited words of each line. The tools I know are some basic bash scripting and sed ... I haven't got to python or perl yet.
So my file looks like this
obj1 0.01953 0.34576 0.04418 0.01249
obj2 0.78140... (7 Replies)
Hi all,
Sorry if someone has answered something like this already, but I have a problem. I am not brilliant with "awk" but think it should be the command to use to get what I am after.
I have 2 files:
job-file (several hundred lines like):
1018003,LONG MU WAN,1113S
1018004,LONG MU... (4 Replies)
I have a shell script running to load some data from a text file to database. Text file contains some non-ASCII characters like ü. How can i convert these characters to UTF-8 codes before loading to DB. (5 Replies)
Sometimes we recieve some excel files containing French/Japanese characters over the mail, and these files are manually transferred to the server by using SFTP (security is not a huge concern here). The data is changed to text format before transferring it using Notepad.
Problem is: When saving... (4 Replies)
Hi,
I have tried to convert a UTF-8 file to windows UTF-16 format file as below from unix machine
unix2dos < testing.txt | iconv -f UTF-8 -t UTF-16 > out.txt
and i am getting some chinese characters as below which l opened the converted file on windows machine.
LANG=en_US.UTF-8... (3 Replies)
I have three files of varying lengths and different number of columns. How can I paste all three with all columns aligned?
File1
----
123
File2
----
234
345
678
File3
----
456
789
Output should look like:
123 234 456
345 789 (6 Replies)
Discussion started by: Un1xNewb1e
6 Replies
LEARN ABOUT DEBIAN
ramon
RAMON(1) General Commands Manual RAMON(1)NAME
ramon - provide RMON2 style reports from argus(8) data.
COPYRIGHT
Copyright (c) 2000-2003 QoSient. All rights reserved.
SYNOPSIS
ramon [ra-options] -M (TopN | Matrix | HostProto | HostSvc | Svc) [-M Net/masklen] [ expression ]
DESCRIPTION
Ramon reads argus(8) data from an argus data source, aggregates the records, sorts them based on user supplied criteria and generates mod-
ified argus data that supports RMON2 style tables and data reporting.
Ramon supports the same sorting capabilites and calling syntax as rasort() for specifying the sorting algorithm and order.
The output is valid argus data, and can be operated on using any ra*() program.
Like all ra based clients, ramon supports a large number of options, configuration through .rarc files, and input filtering using the ter-
minating filter expression.
See the ra(1) man page for details on ra-options and expression syntax.
RAMON SPECIFIC OPTIONS -M TopN
Generate the top N list of network addresses and supply the incoming and outgoing packet and bytes counts. The addresses can be modi-
fied using the -M Net mode in addition to this mode.
-M Matrix
Generate the list of talkers ( A <-> B) and supply the incoming and outgoing packet and byte counts. The talker addresses can be mod-
ified using the -M Net mode.
-M HostProto
Generate the list of protocols that are being used by each address and supply the incoming and outgoing packet and byte counts seen.
-M HostSvc
Generate the list of services that are being used by each address and supply the incoming and outgoing packet and byte counts seen.
-M Svc
Generate the list of services (dst port number) and supply the incoming and outgoing packet and byte counts seen.
-M Net[/masklen]
Track addresses as networks rather than host addresses. If the option masklen is not provided, the addresses are traced as subnets
based on their Class network address.
-a Don't filter output to match expression filter. This generates the complete set of addresses/nets that contributed to the inbound and
outbound metrics.
AUTHORS
Carter Bullard (carter@qosient.com).
SEE ALSO ra(1), rasort(1), rarc(5), argus(8),
07 November 2000 RAMON(1)