Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Mar 2022 16:45:14 -0400
From:      Ernie Luzar <luzar722@gmail.com>
To:        John Levine <johnl@iecc.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Replacement for unzip of .7z compressed files.
Message-ID:  <6238E3DA.4090306@gmail.com>
In-Reply-To: <20220321201919.925363984C21@ary.qy>
References:  <20220321201919.925363984C21@ary.qy>

next in thread | previous in thread | raw e-mail | index | archive | help
John Levine wrote:
> It appears that Ernie Luzar <luzar722@gmail.com> said:
>> I am trying the tar progran which the man page says it does 7-zip.
>>
>> testing using   tar xvf "${uz_dir}/${filename}" "${dl_dir}/${filename}
>>                            location of unziped     zipped file input
>>
>> What am i missing here
> 
> Probably the correct tar command.  See the tar manpage.
> 
> This works for me:
> 
> % tar xvf somefile.7z
> 
> 
> 
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.

I have read the tar man page without any joy



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