Bash Examples

Created Wednesday 22 February 2017

#!/bin/bash

echo "What is your name?"
read thename

lowercasethename=$(echo $thename | tr A-Z a-z)

if [[ $lowercasethename == "bob"]]; then
echo "Whattup bob!"
else
echo "YOU AINT BOB"
fi


And the donald knuth example is highlighted here:

http://www.leancrew.com/all-this/2011/12/more-shell-less-egg/



Backlinks: FSU Courses:LIS5364 FSU Courses:LIS5367