LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-28-2012, 03:48 AM   #1
prabhakaran0608
LQ Newbie
 
Registered: Feb 2012
Posts: 1

Rep: Reputation: Disabled
some files are missing while zipping


Hi

There is a directory in my system and it has totally 8000 files & file name has its time stamp and there are 4052 files for January month


"find /var/ozone/billing/promotool/HERMESNEW/smssdr |grep '201201'|wc -l" => 4052


so, i executed following command to zip only the January month files

"find /var/ozone/billing/promotool/HERMESNEW/smssdr |grep '201201'|xargs tar czvf bakup.gz"

but it had zipped only 806 files .


i have tried many times but i am facing this again & again.

can any one tell me the reason for this..........

Last edited by prabhakaran0608; 02-28-2012 at 11:05 AM.
 
Old 02-28-2012, 07:37 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
No, we can't. we have no idea how many files make it through your grep for a start. You are apparently creating a brand new archive every time tar runs though. use the -r option instead of -c.
 
  


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
Zipping multiple files Quads Linux - Newbie 8 12-29-2011 12:47 PM
listing files selectively and then zipping them. shravee Linux - Newbie 5 10-04-2010 04:23 AM
Zipping of files rajesh_b Programming 5 10-27-2004 06:02 AM
zipping files with a script quickk Linux - Newbie 8 09-17-2004 09:32 AM
zipping/compressing folders and files DiZASTiX Linux - Newbie 1 05-26-2003 08:48 PM


All times are GMT -5. The time now is 08:42 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration