Fix compress.log() docs

This commit is contained in:
Rucknium 2024-04-30 19:32:56 +00:00
parent ec71c63777
commit 4374936150
2 changed files with 6 additions and 2 deletions

View file

@ -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 #' With default arguments, this function accomplishes the same thing as this
#' Linux shell call: #' 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
#' ``` #' ```
#' #'
#' #'

View file

@ -29,7 +29,9 @@ NULL (invisible)
With default arguments, this function accomplishes the same thing as this With default arguments, this function accomplishes the same thing as this
Linux shell call: Linux shell call:
\if{html}{\out{<div class="sourceCode">}}\preformatted{zgrep -a 'net.p2p.msg' bitmonero.log* > extracted-xmr-log; xz extracted-xmr-log; \if{html}{\out{<div class="sourceCode">}}\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{</div>}} }\if{html}{\out{</div>}}
} }
\examples{ \examples{