mirror of
https://git.mills.io/prologic/zs
synced 2025-02-06 23:29:23 +03:00
15 lines
177 B
Bash
Executable File
15 lines
177 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
if [ ! $# = 1 ]; then
|
|
printf "Usage: %s <file>\n" "$(basename "$0")"
|
|
exit 0
|
|
fi
|
|
|
|
if [ -f "$1" ]; then
|
|
cat "$1"
|
|
else
|
|
echo "error: file not found $1"
|
|
fi
|