Re: [ssfr] Challenge One Liner |
[ Thread Index |
Date Index
| More debianworld.org/shellscript-fr Archives
]
- To: shellscript-fr@xxxxxxxxxxxxxxx
- Subject: Re: [ssfr] Challenge One Liner
- From: JJL <buggerone@xxxxxxxxx>
- Date: Wed, 2 Jul 2008 14:14:26 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=Gg8Ww7eVUaORbScL9Gpe0HQ7SVOwnVFGws0h6hpM/y0=; b=BgB8tRL2IB8VFWsS+QbZHnKDnquS1e79Uitna6VnIANZWm+f76gpDoPbgCGbYbj1H8 P7rZy4PuTfd1tdEyhu9bu0df9DNLb9msqfCsH1O8sdz3X7+6AL47quqH1JeipRwRvUCL PlfaDA296RAWALB2tVTCL0RWSH0OPgQR1KRok=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=iFSjhyyXgYO5TUqYU1d7AlTh7ZhtYECKdxO81AGjn+hIAKTObXWVxLwBbFfFPKcaMy kt+h3NaOitalC7d/OH+27Gc17somTcES9ZTyWtSkdcBHf5GqFf/h11R9WPqekZElDJa2 0xKbH22dJ0d09fbRm8J/cSs6ROn1SDrQwh19c=
Salut,
> Le but est de fournir toutes les adresses ip libres d'un reseau prive en
> utilisant une ligne de commande uniquement pouvant imbriquer plusieurs
> commandes bien entendu ;)
Sans connaitre fping (merci Alex), méthode bourrin :
for i in $(seq 254);do ping -c 1 10.4.0.$i >/dev/null || echo 10.4.0.$i;done
Y'a sans doute mieux.
JJL
--
http://kubuntu.free.fr/blog
---