I am running into an issue where I can run the following lines perfectly in Linux console but fail when they are contained (as shown) inside a .sh file:
.sh