From 4374936150993904b24799cda469cda4146624ef Mon Sep 17 00:00:00 2001 From: Rucknium Date: Tue, 30 Apr 2024 19:32:56 +0000 Subject: [PATCH] Fix compress.log() docs --- R/parse.R | 4 +++- man/compress.log.Rd | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/R/parse.R b/R/parse.R index 31d4535..a449845 100644 --- a/R/parse.R +++ b/R/parse.R @@ -197,7 +197,9 @@ get.p2p.log <- function(bitmonero.dir = "~/.bitmonero", output.file = NULL) { #' With default arguments, this function accomplishes the same thing as this #' Linux shell call: #' ``` -#' zgrep -a 'net.p2p.msg' bitmonero.log* > extracted-xmr-log; xz extracted-xmr-log; +#' grep -I "net.p2p.msg" bitmonero.log* > extracted-xmr-log +#' for file in bitmonero.log*.tar.gz; do tar xf "$file" --to-command 'egrep -Ha --label="$TAR_FILENAME" "net.p2p.msg" || true' >> extracted-xmr-log; done +#' xz extracted-xmr-log #' ``` #' #' diff --git a/man/compress.log.Rd b/man/compress.log.Rd index 2f198dd..0a641a7 100644 --- a/man/compress.log.Rd +++ b/man/compress.log.Rd @@ -29,7 +29,9 @@ NULL (invisible) With default arguments, this function accomplishes the same thing as this Linux shell call: -\if{html}{\out{
}}\preformatted{zgrep -a 'net.p2p.msg' bitmonero.log* > extracted-xmr-log; xz extracted-xmr-log; +\if{html}{\out{
}}\preformatted{grep -I "net.p2p.msg" bitmonero.log* > extracted-xmr-log +for file in bitmonero.log*.tar.gz; do tar xf "$file" --to-command 'egrep -Ha --label="$TAR_FILENAME" "net.p2p.msg" || true' >> extracted-xmr-log; done +xz extracted-xmr-log }\if{html}{\out{
}} } \examples{