You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
229 B

#!/bin/bash
# Author: Alice Kaerast <alice@kaerast.info>
t_Log "$0 test tail command"
cat << EOF > /var/tmp/tail-test
1
2
3
4
5
EOF
tail -n1 /var/tmp/tail-test | grep -q 5
t_CheckExitStatus $?
# Cleanup
rm /var/tmp/tail-test