12-04-2011
Hi Ahmed,
your script get only series but uniq lines are need;
output of your script;
3 00 02
3 09 10
3 15 18
3 500 502
I need;
3 00 02
3 07 07 (not found)
3 09 10
3 15 18
3 40 40 (not found)
3 45 45 (not found)
3 500 502
3 70 70 (not found)
3 80 80 (not found)
Best regards
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
If I want to read user input and want to validate if it is a numeric number in some range of 1-100 what would be the best way?
Sabina (5 Replies)
Discussion started by: sabina
5 Replies
2. UNIX for Dummies Questions & Answers
Hi,
My requirement is I have an input file with a continuous series from 10000 to 99999. I have some numbers missing from those series. I want a output file which produces those missing numbers.
Eg: 10002, 99999 are missing from the series then the output file should contain those... (4 Replies)
Discussion started by: rakeshbharadwaj
4 Replies
3. Shell Programming and Scripting
Hi All.
I have a file that has an ID Number field....some of the ID Numbers are actual SSNs. ...does anyone know the range that SSNs may be...this is what I have found so far poking around SSN info sites....
greater than 001-01-0000 and less than 770-00-0000. Does anyone know this to be... (1 Reply)
Discussion started by: lyoncc
1 Replies
4. Shell Programming and Scripting
Hi Guys,
Can someone give me a simple script that can extract the numbers in between numbers from start to end. As shown below, it start from 100 to 110 and revealed the numbers in between.
INPUT:
100 - 110
DESIRED OUTPUT:
100
101
102
103
104
105
106
107 (6 Replies)
Discussion started by: pinpe
6 Replies
5. Shell Programming and Scripting
Is there a way to create a loop that will output number starting from 0.1 to 10.0
0.1
0.2
0.3
0.4
0.5
..
...
10.0
This is what i tried.
for i in {1..50}; do printf -v i '%02d' $i ; echo "$i"; done
That will print
01
02
03
..
..
50 (9 Replies)
Discussion started by: vietrice
9 Replies
6. Shell Programming and Scripting
Is it possible to test against a varible within a ranges in a if statement.
ex.
if ];then
echo "not in range"
else
echo "number within range"
fi (8 Replies)
Discussion started by: leemalloy
8 Replies
7. Shell Programming and Scripting
Hi
I want to get all numbers if number range is given as input.
Eg:
INPUT FILE
100-105
107
108-112
OUTPUT REQUIRED:
100 101 102 103 104 105
107
108 109 110 111 112
How can I do it using shell? :confused:
Thanks in advance. (11 Replies)
Discussion started by: dashing201
11 Replies
8. Shell Programming and Scripting
Hi there I am trying to generate a random number between 40 and 70 using the shell here is my code so far and it keeps going above 70. all help much appreciated!
comp=$(( RANDOM%70+40 ))
echo $comp (4 Replies)
Discussion started by: faintingquiche
4 Replies
9. Shell Programming and Scripting
I have 100k data like this bellow , i want to group data to range
171
172
173
174
175
176
179
182
183
187
188
189
1900
1901
1903
1904
1905
1906 (10 Replies)
Discussion started by: before4
10 Replies
LEARN ABOUT SUSE
avahi-dnsconfd.action
avahi-dnsconfd.action(8) System Manager's Manual avahi-dnsconfd.action(8)
NAME
avahi-dnsconfd.action - avahi-dnsconfd action script
SYNOPSIS
/etc/avahi/avahi-dnsconfd.action
DESCRIPTION
avahi-dnsconfd.action is the action script that is called whenever a new unicast DNS server is found or removed by avahi-dnsconfd. The
default script as shipped with avahi patches /etc/resolv.conf to reflect the changed unicast DNS server configuration.
PARAMETERS
argv[1] Contains the character "+" if the DNS server is new, "-" when it shall be removed from the DNS server list.
argv[2] The IP address of the DNS server.
argv[3] Numerical network interface number this DNS server was found on.
argv[4] Numerical protocol number this DNS server was found on. (usually 2 for IPv4 and 10 for IPv6)
ENVIRONMENT
AVAHI_INTERFACE Contains the textual interface name the corresponds with argv[3]. (e.g. "eth0")
AVAHI_INTERFACE_DNS_SERVERS Contains a list of all DNS servers that avahi-dnsconfd found on the interface $AVAHI_INTERFACE, separated by
spaces.
AVAHI_DNS_SERVERS Contains a list of all DNS server that avahi-dnsconfd found on all interfaces, separated by spaces.
AUTHORS
The Avahi Developers <avahi (at) lists (dot) freedesktop (dot) org>; Avahi is available from http://avahi.org/
SEE ALSO
avahi-dnsconfd(8), avahi-daemon(8)
COMMENTS
This man page was written using xml2man(1) by Oliver Kurth.
Manuals User avahi-dnsconfd.action(8)