#!/bin/sh ###set -e trap "exit" INT files=${1:-assignment20177-*} for sd in $files; do cd $sd #echo $sd tail -1 output cd .. done