--- description: In this lab, we explored basic BASH scripting --- # Lab09 - BASH Scripting ## Commands to find Information on BASH Environment * `bash -version | grep version` - BASH version installed * `which bash` - where the BASH program resides * `echo $PATH` - [Path Environment Variable](https://en.wikipedia.org/wiki/PATH\_\(variable\)) * `env` - [Environment Variables](https://www.techrepublic.com/article/linux-101-what-are-environment-variables/) * `history` - shows previous commands executed ## Check if substring is in string `if [[ $string =~ "substring" ]]; then` * Ping sweeper script
* nslookup script