forked from sig_core/toolkit
16 lines
263 B
Bash
Executable File
16 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*
|