1. Hello script: create hello.sh for your first script
#!/bin/bash
# Hello world script
echo “Enter your name > “
read username
echo “Hello $username”
2. You can run script by command: sh hello.sh
Or chmod +x hello.sh and type ./hello.sh
1. Hello script: create hello.sh for your first script
#!/bin/bash
# Hello world script
echo “Enter your name > “
read username
echo “Hello $username”
2. You can run script by command: sh hello.sh
Or chmod +x hello.sh and type ./hello.sh
0 Responses to “Hello script”