General :: Extract A Zip File To Own Directory?

Apr 21, 2011

Im trying to extract the contents of a zip file but I want to extract it to my own directory. I'v tried -d from unzip but that just puts the contents of the zip into that directory.

But I want to extract the contents of the first (root) directory in the zip if there is only one directory in the root of the zip else just extract the files/folders in the root of the zip file (if there are more then one files).

e.g. test.zip contents the following dir structure:

test.zip
/app_v1/ <-The contents of this directory I want extracted to a dir of my choice
- folder-1
- folder-2
- folder-3
- folder-4
- file1
- file2

View 2 Replies


ADVERTISEMENT

General :: Extract A Tar File From One Directory To Another?

Mar 28, 2011

How do I extract a tar file from one directory to another.

e.g /data1/test.tar to /data2

View 7 Replies View Related

General :: Firefox - 4.0.1.tar.bz2 - What Directory And File To Open - Or Extract

May 10, 2011

I'm Fedora 14 Kernel Linux 2.6.35.13-91.fc14.i686

I downloaded the new firefox and I don't know what to do with it.

What directory and file do I open it, or extract it to?

View 8 Replies View Related

Ubuntu :: Extract File To Program Directory?

Jul 19, 2010

How do i extract a file to a program directory ?

YEA stupid question but im used to windows and im trying to learn ubuntu so far i love it just hitting bumps..

I want to extract

xbmc to

.xbmc/plugins/program directory

i downloaded the file, but when it comes to extracting im lost, because i cannot access the root ? is that were it is ?

View 9 Replies View Related

Ubuntu :: Extract Archive From File To Directory ?

Jul 2, 2011

How to archive content of directory to file and also how to extract archive from file to directory just as below.

If first argument is a directory and second argument is a file, user is prompted to choose whether to archive content of directory to file or extract archive from file to directory.

View 1 Replies View Related

Red Hat / Fedora :: Root Directory - Password To Extract / Copy Any File

Jul 20, 2010

Why do I always need to write "su" then my password to extract or copy any file in fedora 11. How to configure so that I always be in my root directory.

View 3 Replies View Related

General :: How To Extract A Bin File

Jan 21, 2011

I know a .bin file is an executable file type in linux. We have an error after installing it and it referes to a file name and a line number within the file. I'm trying to find out if the file is part of the .bin file but I need a way to see what's inside of it or extract it.

View 5 Replies View Related

General :: Extract A Value From A File With Awk?

May 17, 2011

it is possible to extract a value from a file with awk, grep or something similar. I have a file like this...

ID1,NAME1,LAT1,LON1,VAR1=5.0,VAR2=7.0,VAR6=9.0,VAR15=0.0,VAR20=0.0
ID2,NAME2,LAT2,LON2,VAR1=6.0,VAR15=1.0,VAR20=5.0,VAR22=0.0
ID3,NAME3,LAT3,LON3,VAR1=10.0,VAR2=20.0,VAR3=8.0,VAR10=3.0,VAR15=0.5,VAR20=9.0

[code].....

and I want to extract VAR15 from each line (which can be at any column unfortunately - columns separated with commas - csv file), or VAR15 together with LATn,LONn from each line. Is it possible to do it with awk, grep or something other in linux?

View 11 Replies View Related

General :: Failing To Extract A Tar/bz2 File?

Feb 13, 2011

File in question is [URL].. meder@pc:~$ tar -xvjf wkhtmltopdf-0.10.0_rc2-static-i386.tar.bz2 bzip2: (stdin) is not a bzip2 file. tar: Child returned status 2 tar: Error exit delayed from previous errors

I tried to unzip it as well, and I tried a various slew of commands to no avail on my Debian box which has no GUI. I downloaded this on my local desktop ( Ubuntu ) and was able to easily extract w/ my mouse so I'm not exactly sure what the extractor did differently...

View 1 Replies View Related

General :: Extract Lines From File Using AWK ?

Aug 5, 2010

I have a file similar to this:

I need to print the last line for each user into a file. The resulting file should look like this:

Is there a way that AWK can match lines from $1 and then print the last line into a file?

View 7 Replies View Related

General :: Extract Tar.gz File In Other Directories?

Jun 15, 2010

I stay in /var/www/upload and I want extract a file with tar command.

The output of tar xfvz /var/www/file.tar.gz is

Quote:

tar: /var/www/esempio.tar.bz2: funzione "open" non riuscita: Nessun file o directory
tar: Errore irrimediabile: uscita immediata
tar: Child returned status 2
tar: Uscita con stato di fallimento in base agli errori precedenti

View 4 Replies View Related

General :: GUI Tool To Extract Iso File Contents On (KDE)?

Mar 3, 2010

I have an ISO CD image file and want to extract it's contents to a folder. I know there are ways to mount the image and stuff, but it's complicated. I'm looking for a GUI tool to open up the contets and extract needed files. On windows I would use WinRar to do this. K3B only allows me to burn the stuff, Arch does not work with ISO files :(Is there a similar tool on Linux, preferably from KDE world?

View 6 Replies View Related

General :: Extract 5th Column From A File Without The Header?

Oct 15, 2010

How can I extract 5th column from a file without the header.

View 5 Replies View Related

General :: Extract The File Creation Time?

Nov 23, 2010

I want to extract the file creation time. How to get it. I am using fedora core 4

View 3 Replies View Related

General :: Extract War File Under Red Hat Enterprise Server 5.0?

Apr 14, 2010

I am using a Red Hat enterprise server 5.0 I would like to know if there is a way to extract a single file from inside a war file and display its contents on the screen? For example: I have a file labeled test.war and inside this war there are multiple files/directories. I am interested in seeing the contents of one file labeled MANIFEST.MF without having to unzip the entire war file. does it make sense?

View 6 Replies View Related

General :: Extract The First Few Contents Of A Zipped File And Then The Next Fixed?

Oct 30, 2010

I want to know if there is anyway I can extract the first few contents of a zipped file and then the next fixed and so on? For example, suppose I have a zipped file containing 1000000 natural numbers and I want to extract the first thousand numbers and then the next thousand numbers (1001-2000) and so on till I reach the end. Is this possible?

View 3 Replies View Related

General :: Extract Audio From Video File Using Mencoder?

Feb 2, 2011

Code:
mencoder The.Negotiator.mkv -of rawaudio -oac mp3lame -ovc copy -o sound-mencoder.mp3
I got a 195.3MB mp3 file

[code]...

View 2 Replies View Related

General :: Extract To Multiple Directories Based On File Names?

Jan 30, 2009

I'm not sure if this is possible or even where to start. I assume that this can be done with an sh script using tar or similar.I have several very large zip files that contain images for all of the products in my online store. Each image is named after its 13 digit SKU (for example, 9987788000012.jpg). In order to import products into my store, all images are placed into a media directory. Unfortunately, there are over 100,000 images.

So I would like to break the images into sub-folders based on file name. For example, when I extract store_images.zip (or tar or whatever), my extract script would create directories (if they don't already exist) based on the first three digits of each image name, placing each image into the appropriate bottom level directory. For example, "9987788000012.jpg" would be placed in the following directory "media/9/9/8", with media as the root and "8" as the directory that holds any images that start with "998". Perhaps two sub-folders would be less cumbersome.Assuming this requires a script, particularly since it involves scanning image names, creating folders, and saving images to specific directories, which language would serve my needs best? PHP? Has anyone had to do something similar?

View 13 Replies View Related

General :: File - Extract Executable / Script From Memory In (Ubuntu)

May 11, 2011

when I delete a running executable or script, it usually (for me, pretty much always, but I don't know if it will work in every case) continues to run without any problems. So I've got two questions here: Where is the running executable/script being run from? RAM memory? If stored in RAM or where ever, is there a way to extract the executable/script from that location? If it makes any difference, I'm using Ubuntu 11.04.

View 1 Replies View Related

General :: Parsing Through A Nagios Config File To Extract Info W/ Sed - Awk - Vi

Oct 13, 2010

I have a config file called hosts.cfg.

It contains entries like this:

Quote:

There are many more of these entries in the file, over 500, all in this same format: each host has a "define host" followed by 18 directives contained in squiggly brackets.

If I want to know all the hosts that are in the hostgroup called SERVER_GRP, I suppose I would need to read every hostgroups line (8th directive in squiggly brackets) that contains SERVER_GRP and output the corresponding host_name line (1st directive in squiggly brackets) from that entry.

View 3 Replies View Related

Ubuntu :: File System - Whenever Extract A File From A .tar Or Whatever - It Isn't Detected

Sep 1, 2011

When ever I extract a file from a .tar or whatever, it isn't detected. I notice this mainly when i'm using xampp. I copy zip up all my files on one computer, load ubuntu on another, extract the files to the web folder (htdocs) and then I get nothing. However, when I manually create the files directly on my computer as opposed to extracting them, they appear.

Is there something I need to do in order to have these files appear? Is there some sort of file system refresh? Or am I being a complete idiot?

View 5 Replies View Related

General :: Extracting A Bzip2 File Throws "Can't Guess Original Name" And Does Not Extract Separate Files

Dec 13, 2010

I made a bzip2 file by

bzip2 -c /home/os/picture1 > /home/os/Desktop/pic.image

bzip2 -c /home/os/picture2 >> /home/os/Desktop/pic.image

But now extracting pic.image by bzip2 -d /home/os/Desktop/pic.image returns

bzip2: Can't guess original name for pic.image -- using pic.image.out

And then it just creates one file pic.image.out.

How do I access picture1 and picture2 from pic.image?

View 2 Replies View Related

General :: Unable To Access File /home/username/.iceauthority: No Such File Or Directory

Apr 21, 2011

Can't log into my XFCE desktop like I normaly do. all the sudden I get notified that my xsession lasted less then 10 secondsLooking at the error I can see this:

Unable to access file /home/username/.iceauthority: No such file or directory

Using failsafe I can start a terminal. From terminal I tried to start X

Code: sudo startx Result: Running on desplay:0

So I tried to run this;

Code: sudo startxfce4 And I get up a graphical desktop.

So this is not a critical situation as I easily can use this method to log on, but as there has been something causing this I would like to be able to resolve this nonetheless. Btw it is not the old chmod trick in play here, cause my .iceauthority file is gone alltogheter.

View 6 Replies View Related

General :: 6.13 GMP-5.0.0 LFS Make Error - Cannot Open Shared Object File: No Such File Or Directory

Jun 10, 2010

I'm currently stuck at 6.13 GMP-5.0.0 of the LFS installation. After running make, I receive the following:

error while loading shared libraries: libbfd-2.20.so: cannot open shared object file: No such file or directory
make[2]: *** [libmpn.la] Error 127
make[2]: Leaving directory `/sources/gmp-5.0.0/mpn'

[code]....

View 5 Replies View Related

General :: Libgtk-x11-2.0.so.0: Cannot Open Shared Object File: No Such File Or Directory

Mar 28, 2010

I'm trying to install PCSX2 (PS2 emulator) and I get the following error: ./pcsx2: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory

I've followed the instructions here http://pcsx2.net/downloads.php and believe I have all the dependencies installed. My system has the following file:

/usr/lib/libgtk-x11-2.0.so.0

View 6 Replies View Related

General :: Changing Directory - Saved File On The Desktop - Cannot Seem To Get That File To Execute It

Mar 10, 2011

I was doing a tutorial on scripting in bash. I saved my file on the desktop and I cannot seem to get to that file to execute it. Here is what I have been using:

I try cd Desktop says that there is no such directory.

I tried /home/me/Desktop same thing.

View 5 Replies View Related

Software :: Get First File Of Directory Then Copy To Other Directory Andd Rename The File?

Jan 30, 2011

I want to do the following.

1. have a directory full of subdirectory

2. Pick the first file from every sub and copy that to the main directory and also rename that file to the same name as the subdirectory's name

3. need to work in commandline best is a simple script.

View 4 Replies View Related

General :: Extracting Tar File: Cannot Open: No Such File Or Directory?

Jul 19, 2010

I have a remote Debian 5 machine on which I'm trying to extract a tar-file (Django 1.2.1, but that's unimportant). The first 1300 or so files extracts just fine (of about 2800 in total), after which errors liketar: Django-1.2.1/tests/urls.py: Cannot open: No such file or directoryshows up for the rest of the files, finally ending up with atar: Error exit delayed from previous errorsI use the commandtar xzvf Django-1.2.1.tar.gzI've also tried with sudo (but I'm extracting in my home directory, which I should obviusly have permissions to use without). I've tried gunzipping first (runs flawlessly) and then running tar xvf, but to no avail. I've fetched the file using wget:

View 1 Replies View Related

Ubuntu :: How To Extract .run File

Jul 21, 2010

This is what I tried to do:>cd ~/Desktop >sudo sh ati-driver-installer-10-1-x86.x86_64.run --extract.After entering my password, this appeared: >sh: Can't open ati-driver-installer-10-1-x86.x86_64.run.What am I doing wrong? It apparently worked in this thread.

View 7 Replies View Related

Ubuntu :: How Do I Extract Pgp File

Apr 14, 2011

how do I extract a pgp file on Ubuntu? I have the file and a passphrase. On Windows I have Kleoptra so I can right click the file and click 'decrypt'. Is there an easy way to do this on Ubuntu?

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved