FDD-book/examples/part-01/ch03-a-gentle-introduction-to-unix/shell-scripting/01-hello.sh

10 lines
294 B
Bash
Raw Normal View History

#!/bin/sh
# hello.sh a first shell script using FreeBSD's native /bin/sh
# Print a friendly message with the current date and the active user.
# 'date' prints the current date and time
# 'whoami' prints the current user
echo "Hello from FreeBSD!"
echo "Date: $(date)"
echo "User: $(whoami)"