Well I just wrote my first shell script today and I wanted to share this experience with you all. Its an amazing feeling, jr. programming 101 or something to that effect. I figured i'd share this easy script with you guys, any comments, suggestions or improvements are appreciated and desired.
I used this as my primary guide, I am still going through it, but that and some youtube videos so far gave me what I needed to build this script.
#! /bin/bash
# nmap ping scan
# used to ping a subnet
clear
namp -sP 192.168.1.0/24 > /pentest/results/scans/pingscan.txt && echo scan complete.
exit
fairly simple, but useful I hope in future studies... >

One thing I wanted to do, not sure if it's possible, but originally, I wanted "scanning..." or something to that effect to be displayed while the command was running, and then "scan complete" at the end. Can that be done without adding too much complexity?
Also, many of the examples I saw used quotation marks around statements that were to be echoed. Based on what I found, quotes are used for variables or something to that effect, can someone explain them to me, and when they should/should not be used?