Need help making scripts!

So instead of me having to type the IP every time. How would I sweep 10.10.10.* and have it return which hosts are up if any?