cs107-lecture-examples

Example codes used during Harvard CS107 lectures
git clone https://git.0xfab.ch/cs107-lecture-examples.git
Log | Files | Refs | README | LICENSE

my_exec (284B)


      1 #!/usr/bin/env bash
      2 # File       : my_exec
      3 # Description: Shell script example from lecture slides
      4 # Copyright 2022 Harvard University. All Rights Reserved.
      5 
      6 echo "Script $0 running inside $PWD"
      7 echo "The following arguments were given:"
      8 for arg in "$@"; do
      9     echo $arg
     10 done
     11 exit 0