I want to check the files in particular directory are more that 0 Bytes i.e, Non zero byte file. The script should print a msg if all the files in that directory are empty( 0 Byte). (2 Replies)
I have a file that looks like this, with the first number in each block within each SOURCE declaration being a distance.
%( PHASES
P
%)
%( SOURCES
(10,0.0)
(13,0.0)
(16,0.0)
(19,0.0)
(22,0.0)
(25,0.0)
(28,0.0)
(31,0.0)
(34,0.0)
(37,0.0) (0 Replies)
Hi,
I am new to unix and would greatly appreciate some help.
I have a file containing multiple colums containing different sets of data e.g.
File 1:
John Ireland 27_December_69
Mary England 13_March_55
Mike France 02_June_80
I am currently using the awk... (10 Replies)
Hi,
I need to check whether a particular file exists ot not using awk.
Can anyone help me please?
For Example:script that i am using:
awk '{filename =$NF;
rc=(system("test -r filename")) print $rc;}' "$1"
is not working.
Here I am passing a text file as input whose last word contains a... (6 Replies)
Good day all
I need some helps,
say that I have data like below, each field separated by a tab
DATE NAME ADDRESS
15/7/2012 LX a.b.c
15/7/2012 LX1 a.b.c
16/7/2012 AB a.b.c
16/7/2012 AB2 a.b.c
15/7/2012 LX2 a.b.c... (2 Replies)
Dear all,
I am using following function of some script to assign variable "JobNo" some value form file $SAMPLE"_status.log" ( generated using the red color command )
crab ntuplize_crab -status -c $SAMPLE >& $SAMPLE"_status.log" &
echo $SAMPLE"_status.log" "====="
jobNo=$(awk... (10 Replies)
HI Guys,
I have some 8 files with different name and extensions. I need to check if they are present in a specific folder or not and also want that script to show me which all are not present. I can write if condition for each file but from a developer perspective , i feel that is not a good... (3 Replies)
Hello,
I have a file with below content - Example
3
6
69
139
210
345
395
418
490
492
I would like the result as - Multiple of 70 or nearest number in the file less than the multiple of 70
69
139 (5 Replies)
Discussion started by: Mannu2525
5 Replies
LEARN ABOUT NETBSD
moduli
MODULI(5) BSD File Formats Manual MODULI(5)NAME
moduli -- system moduli file
DESCRIPTION
The /etc/moduli file contains the system-wide Diffie-Hellman prime moduli for sshd(8).
Each line in this file contains the following fields: Time, Type, Tests, Tries, Size, Generator, Modulus. The fields are separated by white
space (tab or blank).
Time: yyyymmddhhmmss. Specifies the system time that the line was appended to the file. The value 00000000000000 means unknown (historic).
Type: decimal. Specifies the internal structure of the prime modulus.
0: unknown; often learned from peer during protocol operation, and saved for later analysis.
1: unstructured; a common large number.
2: safe (p = 2q + 1); meets basic structural requirements.
3: Schnorr.
4: Sophie-Germaine (q = (p-1)/2); usually generated in the process of testing safe or strong primes.
5: strong; useful for RSA public key generation.
Tests: decimal (bit field). Specifies the methods used in checking for primality. Usually, more than one test is used.
0: not tested; often learned from peer during protocol operation, and saved for later analysis.
1: composite; failed one or more tests. In this case, the highest bit specifies the test that failed.
2: sieve; checked for division by a range of smaller primes.
4: Miller-Rabin.
8: Jacobi.
16: Elliptic Curve.
Tries: decimal. Depends on the value of the highest valid Test bit, where the method specified is:
0: not tested (always zero).
1: composite (irrelevant).
2: sieve; number of primes sieved. Commonly on the order of 32,000,000.
4: Miller-Rabin; number of M-R iterations. Commonly on the order of 32 to 64.
8: Jacobi; unknown (always zero).
16: Elliptic Curve; unused (always zero).
Size: decimal. Specifies the number of the most significant bit (0 to M).
Generator: hex string. Specifies the best generator for a Diffie-Hellman exchange. 0 = unknown or variable, 2, 3, 5, etc.
Modulus: hex string. The prime modulus.
The file should be searched for moduli that meet the appropriate Time, Size and Generator criteria. When more than one meet the criteria,
the selection should be weighted toward newer moduli, without completely disqualifying older moduli.
Note that sshd(8) uses only the Size criteria and then selects a modulus at random if more than one meet the Size criteria.
FILES
/etc/moduli
SEE ALSO qsieve(1), sshd(8)HISTORY
The moduli file appeared in OpenBSD 2.8 and NetBSD 1.6.
BSD February 7, 2005 BSD