Home /Linux /Create shell script

Create shell script

Create the simple shell script for the linux.

#!/bin/bash #

set n to 1 n=1 # continue until $n equals 5

while [ $n -le 10000 ]


echo “Welcome $n times.” n=$(( n+1 )) # increments $n

sleep 5


Save the file with codehicode.sh

Change the permission with 777

# chmod 777 codehicode.sh

Execute the file

# ./codehicode.sh

Leave a Reply