Simple Bash Script Implemented in C Part A of this program makes use of forking to create a simple collatz algorithm program Part B implements a simple bash script which returns history, runs last command (!!) and runs the nth last command (!n).