toolkit/func/core/pkg_coreutils/12-cat.sh

11 lines
194 B
Bash
Raw Normal View History

2021-07-05 06:50:25 +00:00
#!/bin/bash
r_log "coreutils" "Testing cat"
2023-11-21 08:23:44 +00:00
trap "/bin/rm /var/tmp/cattest" EXIT
2021-07-05 06:50:25 +00:00
cat > /var/tmp/cattest <<EOF
Green Obsidian
EOF
grep -q "Green Obsidian" /var/tmp/cattest
r_checkExitStatus $?