Shell scripting tutorial

From Linuxintro
Revision as of 23:45, 1 January 2012 by 77.255.30.251 (talk)

Hello world

echo "hello world"
#!/bin/bash
echo "hello world"

input

echo "what is your name? "
read name
echo "hello $name"

Note that the variable is called $name, however the correct statement to read it is

read name

See also