Here are some Linux Bash scripting examples of things I have done in the past.
Check to see if a file is present.
Check within a file for a keyword then do... or if not found do else...
User check way 1.
User check way 2.
Ping test to see if a computer is alive. If not alive then....
This is good for replacing contents within a file. The > means replace. The EOF (End Of File) means that it will add everything up to that line to the file.
This is good for replacing contents within a file. The >> means append. The EOF (End Of File) means that it will add everything up to that line to the file.
Ask a question to put into a variable.
Can be used to enter a variable password or to automate password prompts.
Ask a question and present options.