forked from sig_core/toolkit
15 lines
263 B
Bash
Executable file
15 lines
263 B
Bash
Executable file
#!/bin/bash
|
|
r_log "archive" "Testing zgrep"
|
|
BASEFILE=/var/tmp/zgreptest
|
|
/bin/rm $BASEFILE* &> /dev/null
|
|
|
|
cat > $BASEFILE <<EOF
|
|
Green Obsidian is the release name
|
|
EOF
|
|
|
|
gzip $BASEFILE
|
|
|
|
zgrep -q 'Green Obsidian' $BASEFILE.gz
|
|
r_checkExitStatus $?
|
|
|
|
/bin/rm $BASEFILE*
|