diff --git a/BashRun.png b/BashRun.png new file mode 100644 index 00000000..8f166491 Binary files /dev/null and b/BashRun.png differ diff --git a/bashrun2.png b/bashrun2.png new file mode 100644 index 00000000..af1e93e7 Binary files /dev/null and b/bashrun2.png differ diff --git a/git.sh b/git.sh index 9eb064b0..22432d38 100644 --- a/git.sh +++ b/git.sh @@ -158,3 +158,6 @@ git stash clear git update-index --assume-unchanged file.txt +# lists files in long format +ls -l + diff --git a/read_input.sh b/read_input.sh new file mode 100644 index 00000000..275f19a7 --- /dev/null +++ b/read_input.sh @@ -0,0 +1,12 @@ +#!/bin/bash +# read the name of the user and print hello + +echo "Hello! What is your name. My name is Greg Smith" +read name +echo "Welcome, $name" + +# single quotes prevent the expansion of the variable +echo 'Your name was stored in $name' + +# exercise: write a script that asks the user for a +# filename and create an empty file named after it