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
tarring/compressing files in Unix directory montski Shell Programming and Scripting 1 02-15-2008 04:19 PM
large files? ranj@chn UNIX for Dummies Questions & Answers 2 11-29-2006 06:55 AM
Large files sehgalniraj UNIX for Dummies Questions & Answers 4 03-31-2005 09:03 AM
tarring and gzipping dump files PSC UNIX for Dummies Questions & Answers 4 07-23-2004 04:50 PM
backup : files being modified while tarring jamesbond UNIX for Dummies Questions & Answers 5 10-15-2001 09:58 AM

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 08-19-2007
marwan marwan is offline
Registered User
  
 

Join Date: Mar 2007
Posts: 20
tarring large no. of files

dears,
I have a folder containing huge no. of files, some of them are created on AUG 16, AUG 17 and AUG 18, for example.
All I want to do is tarring all the files created on a certain date, say AUG 18, in one tar file, only in one command line.
So, how to feed all the files created on a certain date to the tar command, provided that I don't want to use a for loop, I just want 1 command line.

can the (find) command be helpfull,

Thanks, so much,for your usual support,
Marwan
  #2 (permalink)  
Old 08-19-2007
kamitsin's Avatar
kamitsin kamitsin is offline
Registered User
  
 

Join Date: Nov 2006
Location: /dev/null
Posts: 177
Yuu are on the right track, you can use find
  #3 (permalink)  
Old 08-19-2007
marwan marwan is offline
Registered User
  
 

Join Date: Mar 2007
Posts: 20
thanks man, i know that i am on the right track, but i need more help than that
  #4 (permalink)  
Old 08-19-2007
kamitsin's Avatar
kamitsin kamitsin is offline
Registered User
  
 

Join Date: Nov 2006
Location: /dev/null
Posts: 177

Code:
find . -type f -mtime XX| xargs tar -cvf marwan.tar

  #5 (permalink)  
Old 08-19-2007
marwan marwan is offline
Registered User
  
 

Join Date: Mar 2007
Posts: 20
thanks kamitsin for your fast response, but execuse me as i am a liitle new with that.
the option -mtime specifies the time as a multiple of 24 hours, and don't specify the whole day as i want, and i think the results will not be the same.
Second, what does the command xargs mean exactly, i did'nt get it form the man.

thanks alot
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 05:15 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