![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to extract files one by one from a directory and let some processing happen | saniya | Shell Programming and Scripting | 5 | 05-19-2008 10:02 AM |
| tar extract to different directory | ammu | UNIX for Advanced & Expert Users | 1 | 07-25-2007 11:54 AM |
| creating object files in a specific directory | svh | High Level Programming | 1 | 02-13-2006 06:05 PM |
| How to extract archive to a specified directory | john_trinh | UNIX for Dummies Questions & Answers | 4 | 03-02-2004 06:07 PM |
| redirecting tar extract to another directory | colesy | UNIX for Dummies Questions & Answers | 7 | 01-28-2003 04:40 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
extract tar files without creating directory
I received a tar file of a directory with 50,000 files in it. Is it possible to extract the files in the tar file without first creating the directory?
ie. Doing tar -xvf filename.tar extracts as follows: x directory/file1.txt x directory/file2.txt . . . I would like to avoid the creation of "directory", otherwise I have to move the files when the process is complete. Thanks. |
|
||||
|
tar- is used to create a single file out of a collection of directories and files.So,you will always get the same contents(as the original one when the tar was created) when you untar it .Because the whole directory structure and the contents are recorded as a stream of bytes in your tar file.So, I think there is no other go!!!
|
|
||||
|
Quote:
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|