LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-23-2005, 03:18 PM   #1
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,091

Rep: Reputation: 41
7zip, extracting to alternate directories.


I need to extract about 200 7z files. I found 7zip for linux (the command line version) but I cannot get this thing to extract to a directory that is differnt from which zrchive is in.

Here is the help

Code:
trey@darkstar:~$ 7za

7-Zip (A) 4.20  Copyright (c) 1999-2005 Igor Pavlov  2005-05-30
p7zip Version 4.20 (locale=en_US,Utf16=on,HugeFiles=on)

Usage: 7za <command> [<switches>...] <archive_name> [<file_names>...]
       [<@listfiles...>]

<Commands>
  a: Add files to archive
  d: Delete files from archive
  e: Extract files from archive
  l: List contents of archive
  t: Test integrity of archive
  u: Update files to archive
  x: eXtract files with full pathname
<Switches>
  -ai[r[-|0]]{@listfile|!wildcard}: Include archives
  -ax[r[-|0]]{@listfile|!wildcard}: eXclude archives
  -bd: Disable percentage indicator
  -i[r[-|0]]{@listfile|!wildcard}: Include filenames
  -l: don't store symlinks; store the files/directories they point to
  CAUTION : the scanning stage can never end because of symlinks like '..'
            (ex:  ln -s .. ldir)
  -m{Parameters}: set compression Method
  -o{Directory}: set Output directory
  -p{Password}: set Password
  -r[-|0]: Recurse subdirectories
  -sfx[{name}]: Create SFX archive
  -si: read data from stdin
  -so: write data to stdout
  -t{Type}: Set type of archive
  -v{Size}}[b|k|m|g]: Create volumes
  -u[-][p#][q#][r#][x#][y#][z#][!newArchiveName]: Update options
  -w[{path}]: assign Work directory. Empty path means a temporary directory
  -x[r[-|0]]]{@listfile|!wildcard}: eXclude filenames
  -y: assume Yes on all queries
trey@darkstar:~$
So from what I see.. e extracts but there does not seem to be any options to extract to /whatever instead of extracting to '.'

EDIT: Assigning a work directory does not change the extracting path... I tried it a few different way with no change.

So.. am I over looking something or does this app not do this? If it doesn't I will have to extract 200 archives manually.. since I wont be able to script it

Last edited by trey85stang; 07-23-2005 at 03:19 PM.
 
Old 07-23-2005, 03:32 PM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
so what does -o do?
-o{Directory}: set Output directory
 
Old 07-23-2005, 04:15 PM   #3
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,091

Original Poster
Rep: Reputation: 41
Quote:
Originally posted by Andrew Benton
so what does -o do?
-o{Directory}: set Output directory
dohh... Looks like I overlooked that option 22k times

It works perfectly Thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CHMOD directories.sub-directories.files zerojosh Linux - Software 2 11-19-2005 04:22 PM
Searching multiple directories and sub directories for a file jeep99899 Linux - Newbie 2 10-13-2005 01:23 PM
Getting access to directories when extracting TAR djpalm64 Mandriva 2 01-28-2005 11:32 AM
alternate to nautilus? Guru3 Linux - Software 1 11-22-2003 01:56 PM
Alternate Distro dnar Linux - Distributions 4 02-28-2002 02:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration