03-24-2011
I guess the fiber guys do not do bytes, so multiply by 2, 4 or 8.
9 More Discussions You Might Find Interesting
1. Debian
Hi All,
I am running my application on a dual cpu debian linux 3.0 (2.4.19 kernel).
For my application:
<sar -U ALL>
CPU %user %nice %system %idle
...
10:58:04 0 153.10 0.00 38.76 0.00
10:58:04 1 3.88 0.00 4.26 ... (0 Replies)
Discussion started by: jaduks
0 Replies
2. UNIX for Dummies Questions & Answers
Hi Friends,
Can any of you explain me about the below line of code?
mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`
Im not able to understand, what exactly it is doing :confused:
Any help would be useful for me.
Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies
3. Shell Programming and Scripting
hi All,
cat file_name | awk /^~/'{print $1","$2","$3","$4}' | sed -e 's/~//g'
Can this be done by using sed or awk alone (4 Replies)
Discussion started by: harshakusam
4 Replies
4. Shell Programming and Scripting
Hi All,
I have working (Perl) code to combine 2 input files into a single output file using the join function that works to a point, but has the following limitations:
1. I am restrained to 2 input files only.
2. Only the "matched" fields are written out to the "matched" output file and... (1 Reply)
Discussion started by: Katabatic
1 Replies
5. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
6. Shell Programming and Scripting
logs:
"/home/abc/public_html/index.php"
"/home/abc/public_html/index.php"
"/home/xyz/public_html/index.php"
"/home/xyz/public_html/index.php"
"/home/xyz/public_html/index.php"
how to use "cut" or "awk" or "sed" to get the following result:
abc
abc
xyz
xyz
xyz (8 Replies)
Discussion started by: timmywong
8 Replies
7. UNIX for Dummies Questions & Answers
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies
8. Shell Programming and Scripting
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
9. AIX
Hi 2 all,
i have had AIX 7.2
:/# /usr/IBMAHS/bin/apachectl -v
Server version: Apache/2.4.12 (Unix)
Server built: May 25 2015 04:58:27
:/#:/# /usr/IBMAHS/bin/apachectl -M
Loaded Modules:
core_module (static)
so_module (static)
http_module (static)
mpm_worker_module (static)
... (3 Replies)
Discussion started by: penchev
3 Replies
LEARN ABOUT NETBSD
strsuftoll
STRSUFTOLL(3) BSD Library Functions Manual STRSUFTOLL(3)
NAME
strsuftoll, strsuftollx -- convert a string to a long long, with suffix parsing
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <stdlib.h>
long long
strsuftoll(const char *desc, const char *val, long long min, long long max);
long long
strsuftollx(const char *desc, const char *val, long long min, long long max, char *errbuf, size_t errbuflen);
DESCRIPTION
The functions strsuftoll() and strsuftollx() convert val into a number of type long long, checking that the result is not smaller than min or
larger than max. Two or more decimal numbers may be separated by an ``x'' to indicate a product.
Each decimal number may have one of the following optional suffixes:
b Block; multiply by 512
k Kibi; multiply by 1024 (1 KiB)
m Mebi; multiply by 1048576 (1 MiB)
g Gibi; multiply by 1073741824 (1 GiB)
t Tebi; multiply by 1099511627776 (1 TiB)
w Word; multiply by the number of bytes in an integer
In the case of an error (range overflow or an invalid number), strsuftollx() places an error message into errbuf (which is errbuflen bytes
long) and returns 0, and strsuftoll() displays that error and terminates the process. The parameter desc is used to construct errbuf.
Neither desc nor val may be NULL.
RETURN VALUES
The functions strsuftoll() and strsuftollx() return either the result of the conversion, unless the value overflows or is not a number; in
the latter case, strsuftoll() displays an error message and terminates the process with exit code EXIT_FAILURE, and strsuftollx() returns
with 0 and errbuf contains a non-empty error message.
ERRORS
[ERANGE] The given string was out of range; the value converted has been clamped.
SEE ALSO
errx(3), strtoll(3), orders(7)
BUGS
At least few limitations should be mentioned:
o Both functions ignore the current locale.
o Neither strsuftoll() nor strsuftollx() fail gracefully in case of invalid, NULL, pointers.
o Arguably the return type should be intmax_t instead of long long.
o The strsuftollx() function is prone to buffer overflows if used incorrectly. Arguably only strsuftoll() should be exposed to a caller.
BSD
December 14, 2010 BSD