shell script in linux code example
Example 1: shell script sh
#!/bin/sh
# This is a comment!
echo Hello World # This is a comment, too!
Example 2: shell file in linux
#!/bin/sh
ls
Example 3: bash scripting
#!/bin/sh
# Author : Zara Ali
# Copyright (c) Tutorialspoint.com
# Script follows here:
echo "What is your role"
read ROLE
echo "My Role : $ROLE"
Example 4: shell script linux
#!/bin/bash
echo "Hello World!"
Example 5: linux shell script
#!/bin/bash
echo "Hello World"