Archive for the 'Linux script' Category

18
Jul
07

Hello script

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




Follow

Get every new post delivered to your Inbox.