diff --git a/Summer-2024/CS-3424/Assignment-0/Assignment.pdf b/Summer-2024/CS-3424/Assignment-0/Assignment.pdf new file mode 100644 index 0000000..652f2ec Binary files /dev/null and b/Summer-2024/CS-3424/Assignment-0/Assignment.pdf differ diff --git a/Summer-2024/CS-3424/Assignment-0/a0.bash b/Summer-2024/CS-3424/Assignment-0/a0.bash new file mode 100755 index 0000000..90acbc9 --- /dev/null +++ b/Summer-2024/CS-3424/Assignment-0/a0.bash @@ -0,0 +1,25 @@ +#!/usr/bin/env -S nix shell nixpkgs#bash --command bash + +set -eEuo pipefail + +usage() { + cat <<-__EOS__ + Usage: ${0} + __EOS__ + exit 0 +} + +main() { + if (($# < 2)); then + usage + fi + + cat <<-__EOS__ + My name is ${1} ${2} + I am running this script from $(pwd) + My username is $(whoami) + I am logged in to $(hostname) + __EOS__ +} + +main "${@}"