reverting docs and test
This commit is contained in:
@@ -272,19 +272,6 @@ It's used the same way as normal `grep`, for example :
|
|||||||
`zstdgrep pattern file.zst`
|
`zstdgrep pattern file.zst`
|
||||||
|
|
||||||
`zstdgrep` is _not_ compatible with dictionary compression.
|
`zstdgrep` is _not_ compatible with dictionary compression.
|
||||||
`zstdgrep` does not support the following grep options
|
|
||||||
|
|
||||||
```
|
|
||||||
--dereference-recursive (-R)
|
|
||||||
--directories (-d)
|
|
||||||
--exclude
|
|
||||||
--exclude-from
|
|
||||||
--exclude-dir
|
|
||||||
--include
|
|
||||||
--null (-Z),
|
|
||||||
--null-data (-z)
|
|
||||||
--recursive (-r)
|
|
||||||
```
|
|
||||||
|
|
||||||
To search into a file compressed with a dictionary,
|
To search into a file compressed with a dictionary,
|
||||||
it's necessary to decompress it using `zstd` or `zstdcat`,
|
it's necessary to decompress it using `zstd` or `zstdcat`,
|
||||||
|
|||||||
@@ -254,30 +254,6 @@ ZCAT=./zstdcat $ZSTDGREP 2>&1 "1234" tmp_grep_bad.zst && die "Should have failed
|
|||||||
ZCAT=./zstdcat $ZSTDGREP 2>&1 "1234" tmp_grep_bad.zst | grep "No such file or directory" || true
|
ZCAT=./zstdcat $ZSTDGREP 2>&1 "1234" tmp_grep_bad.zst | grep "No such file or directory" || true
|
||||||
rm -f tmp_grep*
|
rm -f tmp_grep*
|
||||||
|
|
||||||
println "\n===> zstdgrep --regexp= multiple"
|
|
||||||
echo "start" > tmp_grep
|
|
||||||
echo "stop" >> tmp_grep
|
|
||||||
ZCAT=./zstdcat $ZSTDGREP --regexp=start --regexp=stop tmp_grep > tmp_grep_out1
|
|
||||||
grep -e start -e stop tmp_grep > tmp_grep_out2
|
|
||||||
$DIFF tmp_grep_out1 tmp_grep_out2
|
|
||||||
rm -f tmp_grep*
|
|
||||||
|
|
||||||
println "\n===> zstdgrep multiple -e"
|
|
||||||
echo "start" > tmp_grep
|
|
||||||
echo "stop" >> tmp_grep
|
|
||||||
ZCAT=./zstdcat $ZSTDGREP -e start -e stop tmp_grep > tmp_grep_out1
|
|
||||||
grep -e start -e stop tmp_grep > tmp_grep_out2
|
|
||||||
$DIFF tmp_grep_out1 tmp_grep_out2
|
|
||||||
rm -f tmp_grep*
|
|
||||||
|
|
||||||
println "\n===> zstdgrep multiple --regexp"
|
|
||||||
echo "start" > tmp_grep
|
|
||||||
echo "stop" >> tmp_grep
|
|
||||||
ZCAT=./zstdcat $ZSTDGREP --regexp start --regexp stop tmp_grep > tmp_grep_out1
|
|
||||||
grep -e start -e stop tmp_grep > tmp_grep_out2
|
|
||||||
$DIFF tmp_grep_out1 tmp_grep_out2
|
|
||||||
rm -f tmp_grep*
|
|
||||||
|
|
||||||
println "\n===> --exclude-compressed flag"
|
println "\n===> --exclude-compressed flag"
|
||||||
rm -rf precompressedFilterTestDir
|
rm -rf precompressedFilterTestDir
|
||||||
mkdir -p precompressedFilterTestDir
|
mkdir -p precompressedFilterTestDir
|
||||||
|
|||||||
Reference in New Issue
Block a user