gnuastro-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnuastro-commits] master 2bb96d2: Lzip's output piped into Tar in book'


From: Mohammad Akhlaghi
Subject: [gnuastro-commits] master 2bb96d2: Lzip's output piped into Tar in book's quick start
Date: Mon, 29 Jan 2018 05:43:46 -0500 (EST)

branch: master
commit 2bb96d275930fd7d1efcdc02803f28dc6ccecb6a
Author: Mohammad Akhlaghi <address@hidden>
Commit: Mohammad Akhlaghi <address@hidden>

    Lzip's output piped into Tar in book's quick start
    
    Antonio Diaz Diaz kindly noted that for systems where Tar doesn't recognize
    `.tar.lz', we can use a pipe instead of two commands. So a footnote was
    added to the "Quick start" section of the book to remind the users of this
    method. In the main text, the two command format is kept because it is more
    clear to the un-experienced eyes.
    
    An experienced person in the Unix-way will never even open this section of
    the book, they will have their own methods to uncompress and un-pack a
    tarball. But the footnote can be a good reminder for a person who is
    reading the manual a second time (and has gained some prior experience in
    Unix).
---
 doc/gnuastro.texi | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/doc/gnuastro.texi b/doc/gnuastro.texi
index b4f9d3e..6442f60 100644
--- a/doc/gnuastro.texi
+++ b/doc/gnuastro.texi
@@ -735,7 +735,12 @@ Let's assume the downloaded tarball is in the 
@file{TOPGNUASTRO}
 directory. The first two commands below can be used to decompress the
 source. If you download @file{tar.lz} and your Tar implementation doesn't
 recognize Lzip (the second command fails), run the third and fourth
-lines. Note that lines starting with @code{##} don't need to be typed.
address@hidden case Tar doesn't directly uncompress your @file{.tar.lz}
+tarball, you can merge the separate calls to Lzip and Tar (shown in the
+main body of text) into one command by directly piping the output of Lzip
+into Tar with a command like this: @command{$ lzip -cd gnuastro-0.5.tar.lz
+| tar -xf -}}. Note that lines starting with @code{##} don't need to be
+typed.
 
 @example
 ## Go into the download directory.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]