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.
15 lines
282 B
15 lines
282 B
12 months ago
|
#!/bin/bash
|
||
|
# Author: Alice Kaerast <alice@kaerast.info>
|
||
|
|
||
|
t_Log "$0 test cat command"
|
||
|
|
||
|
cat > /var/tmp/cat-test <<EOF
|
||
|
file 1
|
||
|
EOF
|
||
|
grep -q "file 1" /var/tmp/cat-test
|
||
|
|
||
|
echo "file 2" > /var/tmp/cat-test2 && grep -q "file 2" /var/tmp/cat-test2
|
||
|
t_CheckExitStatus $?
|
||
|
|
||
|
rm /var/tmp/cat-test
|