The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



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
Auto copy for files from folder to folder upon instant writing Bashar UNIX for Advanced & Expert Users 2 08-21-2008 03:44 PM
How to unzip a zip file into a folder with the zip file's name? basis Shell Programming and Scripting 5 06-05-2008 08:10 AM
unzip particular gzip files among the normal data files thepurple Shell Programming and Scripting 4 11-30-2007 11:17 AM
Copy files from CD and Unzip AJD UNIX for Dummies Questions & Answers 1 04-15-2004 08:43 AM
unzip .tgz files Prafulla UNIX for Dummies Questions & Answers 5 02-09-2002 10:38 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-25-2008
agarwalniru agarwalniru is offline
Registered User
  
 

Join Date: May 2007
Posts: 11
unzip files in a different folder

hi ,

I am using this command to unzip files from a source

unzip -o $source_dir -d $dest_dir

butthe problem is that this command creates a new folder at the destination and unzips all the files in that folder.
I dont want that extra folder.

e.g

source_dir= abc/myname.zip
dest_dir=xyz/myname/*.pdf

whereas i want my dest_dir to be xyz/*.pdf

can some one please help me with this????

Thanks
  #2 (permalink)  
Old 03-25-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
  
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
unzip has a -j option to "junk paths". Sounds like that's what you're after.
  #3 (permalink)  
Old 03-25-2008
agarwalniru agarwalniru is offline
Registered User
  
 

Join Date: May 2007
Posts: 11
thanks!!! that worked out exactly as i wanted!!!!
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:30 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0