mirror of
https://git.mills.io/prologic/zs-starter-template.git
synced 2024-11-21 21:06:03 +03:00
13 lines
169 B
Plaintext
13 lines
169 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
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
|