Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Mar 2022 20:56:33 +0000
From:      Steve O'Hara-Smith <steve@sohara.org>
To:        questions@freebsd.org
Subject:   Re: Replacement for unzip of .7z compressed files.
Message-ID:  <20220321205633.8fb198a9f92d9e7a1d39b4d7@sohara.org>
In-Reply-To: <6238E3DA.4090306@gmail.com>
References:  <20220321201919.925363984C21@ary.qy> <6238E3DA.4090306@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 21 Mar 2022 16:45:14 -0400
Ernie Luzar <luzar722@gmail.com> wrote:

> Problem is how do I get the extracted file into a different directory?
> I have a directory named DL with 5 different named .7z files and want to 
> have the unzipped version go to another directory named UZ with the 5 
> .7z files having the same file names minus the .7z extension.

	tar xv -C /destination/directory -f archive.7z

	In extract mode -C changes directory after opening the archive.

-- 
Steve O'Hara-Smith <steve@sohara.org>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20220321205633.8fb198a9f92d9e7a1d39b4d7>