Hi,
I am facing a small problem while I am doing the sort.
Problem Definition:
I have a file which has the following data.
>cat test.dat
zxzxc
asdasd
qwaxcZa
qwaxcA
When I do a sort on this file.
the result set is
asdasd
qwaxcA (4 Replies)
Suppose I want to find the number of uniq lines in a file. I use the following command:
sort file1 | uniq -c | wc -l
But if for some reason sort fails, the above command returns 0 as the answer.
Why would sort fail ? sort makes use of directories /tmp or /var/tmp to store temporary files.... (7 Replies)
I have a text file comprising of 3 columns
1. First column - numeric count/frequency of error codes
2. Second column - alphanumeric hyphenated error code
3. Third column - Error code description (alphanumeric)
184 ABCD-954 Errorcodedescription1
35645 DFMS-323 Errorcodedescription2
43534 ... (2 Replies)
Hi,
I would like to know given that I have 3 columns.
Let say I have first 3 columns to do operation and these operation output is printed out each line by line using AWK and associative array.Currently in the output file, I do a sort by -r for the operation output.
The problem comes to... (1 Reply)
Hi All,
After Sorting directories and files i have got following output as below, now i only want the strings common in them, so the actual output should be as below in the bottom. How do i do that?
Thanks
-adsi
File to be modified:-
Common Components for ----> AA... (4 Replies)
Hello All,
Today i have been asking lots of question, hope to become good in scripting soon with all the wonderful advices i get. The question is i want to sort data a get uniq string from it. The code i am using to generate the output is:-
check_sun() {
for i in $SUN_PLATFORM
do
$ECHO... (0 Replies)
Hi to all.
I'm trying to sort this with the Unix command sort.
user1:12345678:3.5:2.5:8:1:2:3
user2:12345679:4.5:3.5:8:1:3:2
user3:12345687:5.5:2.5:6:1:3:2
user4:12345670:5.5:2.5:5:3:2:1
user5:12345671:2.5:5.5:7:2:3:1
I need to get this:
user3:12345687:5.5:2.5:6:1:3:2... (7 Replies)
I have a file with three fields of data for example say we have
1420 $12.56 45
3456 $15.89 14
2341 $25.87 32
I need to use a command to show who is getting paid the highest amount to standard output. I am not sure if I should use a sort command or a copy and paste... (1 Reply)
Discussion started by: drew211
1 Replies
LEARN ABOUT DEBIAN
rngtest
RNGTEST(1) General Commands Manual RNGTEST(1)NAME
rngtest - Check the randomness of data using FIPS 140-2 tests
SYNOPSIS
rngtest [-c n | --blockcount=n] [-b n | --blockstats=n] [-t n | --timedstats=n] [-p | --pipe] [-?] [--help] [-V] [--version]
DESCRIPTION
rngtest works on blocks of 20000 bits at a time, using the FIPS 140-2 (errata of 2001-10-10) tests to verify the randomness of the block of
data.
It takes input from stdin, and outputs statistics to stderr, optionally echoing blocks that passed the FIPS tests to stdout (when operating
in pipe mode). Errors are sent to stderr.
At startup, rngtest will throw away the first 32 bits of data when operating in pipe mode. It will use the next 32 bits of data to boot-
strap the FIPS tests (even when not operating in pipe mode). These bits are not tested for randomness.
Statistics are dumped to stderr when the program exits.
OPTIONS -p, --pipe
Enable pipe mode. All data blocks that pass the FIPS tests are echoed to stdout, and rngtest operates in silent mode.
-c n, --blockcount=n (default: 0)
Exit after processing n input blocks, if n is not zero.
-b n, --blockstats=n (default: 0)
Dump statistics every n blocks, if n is not zero.
-t n, --timedstats=n (default: 0)
Dump statistics every n secods, if n is not zero.
-?, --help
Give a short summary of all program options.
-V, --version
Print program version
STATISTICS
rngtest will dump statistics to stderr when it exits, and when told to by blockstats or timedstats.
FIPS 140-2 successes and FIPS 140-2 failures counts the number of 20000-bit blocks either accepted or rejected by the FIPS 140-2 tests.
The other statistics show a breakdown of the FIPS 140-2 failures by FIPS 140-2 test. See the FIPS 140-2 document for more information
(note that these tests are defined on FIPS 140-1 and FIPS 140-2 errata of 2001-10-10. They were removed in FIPS 140-2 errata of
2002-12-03).
The speed statistics are taken for every 20000-bit block trasferred or processed.
EXIT STATUS
0 if no errors happen, and no blocks fail the FIPS tests.
1 if no errors happen, but at least one block fails the FIPS tests.
10 if there are problems with the parameters.
11 if an input/output error happens.
12 if an operating system or resource starvation error happens.
SEE ALSO random(4), rngd(8)
FIPS PUB 140-2 Security Requirements for Cryptographic Modules, NIST,
http://csrc.nist.gov/cryptval/140-2.htm
AUTHORS
Henrique de Moraes Holschuh <hmh@debian.org>
rng-tools 2-unofficial-mt.14 March 2004 RNGTEST(1)