UNIX TUTORIALS - Unix - What is Shell?
Unix - What is Shell?
ADVERTISEMENTS
Shell Prompt:
$date Thu Jun 25 08:30:19 MST 2009ADVERTISEMENTSExample Script:
#!/bin/shADVERTISEMENTS
#!/bin/bash pwd lsShell Comments:
#!/bin/bash # Author : Zara Ali # Copyright (c) .com # Script follows here: pwd ls
$chmod +x test.sh
$./test.sh
/home/amrood index.htm unix-basic_utilities.htm unix-directories.htm test.sh unix-communication.htm unix-environment.htmExtended Shell Scripts:
#!/bin/sh # Author : Zara Ali # Copyright (c) .com # Script follows here: echo "What is your name?" read PERSON echo "Hello, $PERSON"
$./test.sh What is your name? Zara Ali Hello, Zara Ali $