.sh file code example
Example 1: shell script sh
#!/bin/sh
# This is a comment!
echo Hello World # This is a comment, too!
Example 2: .sh file example
#!/bin/bash
echo "Hi How Are Ya"
Example 3: run sh file
sh yourfile.sh
#!/bin/sh
# This is a comment!
echo Hello World # This is a comment, too!
#!/bin/bash
echo "Hi How Are Ya"
sh yourfile.sh