On Sun, Dec 5, 2010 at 9:37 AM, Narendra Sisodiya
<[email protected]> wrote:
> This is one the smallest trick
>
> ping() {
> if [ -z $1 ];
> then
>     /bin/ping google.com
> else
>     /bin/ping $@
> fi
> }

But isn't it nice to see how to use ping if you don't pass an
argument? I would suggest adding a detailed explanation rather than
pinging google by default.

SB

-- 
l...@iitd - http://tinyurl.com/ycueutm

Reply via email to