10 More Discussions You Might Find Interesting
1. Programming
I'm trying to solve the below problem for a number:
Enter a number and if it has all unique digits print unique number else non-unique number.
Eg:
Input=123; Output=unique number
Input=112; Output=Non-unique number
The thing i tried is splitting the number into digits by using % operator... (2 Replies)
Discussion started by: Gautham
2 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I have got a file in the following format:
4300 23695
4305 03591
4400 125368
I need to sort this file to find the minimum absolute value of the numbers starting from 6th pos, so the expected output is:-
4300 23569
4305 01359
4400 123568
I tried to cut out the file from 6th... (7 Replies)
Discussion started by: roy121
7 Replies
3. Shell Programming and Scripting
I want to search a bunch of files and list only those containing a minimum number of pattern matches. So if I want to identify files containing 3 (or more) instances of the pattern "said:" and I have file1 that contains the lines:
He said:
She said:
and file2 that contains the lines:
He... (3 Replies)
Discussion started by: stumpyuk
3 Replies
4. Linux
I think its 3. Just to know if I am correct.
/
/boot
swap
:confused: (2 Replies)
Discussion started by: nitin09
2 Replies
5. Shell Programming and Scripting
Input
10 8 20 8 10 9 20 9
10 12 20 19 10 10 20 40
Output1
10 8 2 20 8 12 10 9 1 20 9 11
10 12 -2 20 19 1 10 10 0 20 40 -20
Output2
10 9 ... (0 Replies)
Discussion started by: repinementer
0 Replies
6. Shell Programming and Scripting
Wrote a script to create a hidden account in OS X. It works perfect but I need to check if the UID is already in use before I tried to create the account.
dscl . list /Users UniqueID | awk '{print $2}' | while read UIDS
do
if ; then
echo "UID Is Already in USE"
i=`expr "$2" - 1`
echo... (4 Replies)
Discussion started by: elbombillo
4 Replies
7. Shell Programming and Scripting
I'm loading multiple delimited files into an Oracle DB using sqlldr on Unix. I would like to get only the most recent record per each unique key. There may be multiple updates for each key, but I only want the most recent one.
There is a date column in my delimited files, so I'm using cat to... (2 Replies)
Discussion started by: OPTIMUS_prime
2 Replies
8. Shell Programming and Scripting
Hi,
how i can display all the unique number from my random number script below;
#!/usr/bin/perl
use strict;
my @alphanum = ( 'A' .. 'Z', 'a' .. 'z', 0 .. 9);
my $random = join('', map($alphanum,(1..5)));
print "$random\n";
Thank You. (1 Reply)
Discussion started by: malaysoul
1 Replies
9. Shell Programming and Scripting
Hello,
In korn-shell, how can I do to have an unique number for a date done.
I want to use it to have the number of days between two dates.
Thanks in advance. (4 Replies)
Discussion started by: madmat
4 Replies
10. UNIX for Dummies Questions & Answers
Hi, I know that inode for each file is unique, but is it the for the directory? So far I found different directories has the same inode nubmer when you do ls -i, could some one explain why? Thanks a lot. (9 Replies)
Discussion started by: nj302
9 Replies
nsd-checkconf(8) nsd 3.2.12 nsd-checkconf(8)
NAME
nsd-checkconf - NSD configuration file checker.
SYNOPSIS
nsd-checkconf [-v] [-h] [-o option] [-z zonename] [-s keyname] configfile
DESCRIPTION
nsd-checkconf reads a configuration file. It prints parse errors to standard error, and performs additional checks on the contents. The
configfile format is described in nsd.conf(5).
The utility of this program is to check a config file for errors before using it in nsd(8) or zonec(8). This program can also be used for
shell scripts to access the nsd config file, using the -o and -z options.
OPTIONS
-v After reading print the options to standard output in configfile format. Without this option, only success or parse errors are
reported.
-h Print usage help information and exit.
-o option
Return only this option from the config file. This option can to be used in conjunction with the -z option. The special value zones
prints out a list of configured zones.
This option is primarily used by nsdc to parse the config file from the shell. If the -z option is given, but the -o option is not
given, nothing is printed.
-s keyname
Prints the key secret (base64 blob) configured for this key in the config file. Used to help shell scripts parse the config file.
-z zonename
Return the option specified with -o for zone 'zonename'.
If this option is not given, the server section of the config file is used. This option is primarily used by nsdc to parse the con-
fig file from the shell.
The -o, -s and -z option print configfile options to standard output.
FILES
/etc/nsd3/nsd.conf
default NSD configuration file
SEE ALSO
nsd(8), nsdc(8), nsd.conf(5), nsd-notify(8), nsd-patch(8), nsd-xfer(8), zonec(8)
AUTHORS
NSD was written by NLnet Labs and RIPE NCC joint team. Please see CREDITS file in the distribution for further details.
NLnet Labs jul 19, 2012 nsd-checkconf(8)