Tugger the SLUGger!SLUG Mailing List Archives

Re: [SLUG] script question


This one time, at band camp, Bernhard L?der wrote:
>ping 203.203.203.203 > /tmp/ping-check
>if 'cat /tmp/ping-check | grep packet'   "DOES NOT CONTAIN "0% packet loss"
>do restart of interface

grep -v blerg  says to return all lines that don't match 'blerg'

-- 
jaq@xxxxxxxxxxxxxx                        http://spacepants.org/jaq.gpg
<Balial> This port may thing it's fortified, butt I seem to be mounting
a pretty good assault