Bash Script Using Variables To Write