Re: [ssfr] Challenge One Liner

[ Thread Index | Date Index | More debianworld.org/shellscript-fr Archives ]


On Wed, Jul 02, 2008 at 06:37:05PM +0200, Philippe Jacquot wrote:
> # fping -s -g 172.16.240.0/24 -r 1 2>/dev/null | awk '/alive/ {print $1  
> >"in"} /unreachable/ {print $1 >"out"}'

du coup: 

fping -s -g 172.16.240.0/24 -r 1 2>/dev/null | sed '
	/alive/ w in
	/unreachable/ w out
    '

-- 
Marc Chantreux
BibLibre, expert en logiciels libres pour l'info-doc
http://biblibre.com

---


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/