Date: Mon, 05 Feb 2001 09:45:26 -0800 From: "Raymundo M. Vega" <RaymundoVega@home.com> To: Joe.Warner@smed.com Cc: lucas@slb.to, freebsd-questions@FreeBSD.ORG Subject: Re: Help me make FreeBSD shine Message-ID: <3A7EE6B6.C75AE66B@home.com> References: <852569EA.005F58D2.00@Deimos.smed.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Joe.Warner@smed.com wrote:
>
> Hey thanks!
>
> Right now, I'm just starting with something simple.
>
> I created this script:
>
> #!/bin/sh
>
> grep -v "#" /etc/hosts | awk '{print $1}' | while read host
> do
> ping -c 1 $host
complete the line with:
ping -c 1 $host >> hosts_on_line.txt
You may need to delete this file at the begining of the script
because it will append the output.
suerte
raymundo
> done
>
> ...and it works, except I want the output to be dumped
> into a text file.
>
> Do you know how I should change this script so I could
> do that?
>
> If this script doesn't do what my manager wants, I'll
> definitely try yours.
>
> Thanks
>
> Joe
>
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A7EE6B6.C75AE66B>
