#!/bin/sh # Check if a filename has been provided if [ $# -ne 1 ]; then echo "Usage: $0 " exit 1 fi # Store the filename FILENAME=$1 # Check if the file exists if [ ! -f "$FILENAME" ]; then echo "File not found: $FILENAME" exit 1 fi # Display the contents of the file cat "$FILENAME"