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 head command"
cat << EOF > /var/tmp/head-test
1
2
3
4
5
EOF
head -n1 /var/tmp/head-test | grep -q 1
t_CheckExitStatus $?
# Cleanup
rm /var/tmp/head-test