![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to remove user from a group using command line | civic2005 | SUN Solaris | 2 | 09-18-2008 03:05 PM |
| uncompress a group of files | ali560045 | Shell Programming and Scripting | 8 | 09-05-2008 03:02 AM |
| How to listout the files based on group by the date...? | psiva_arul | UNIX for Dummies Questions & Answers | 3 | 04-21-2008 10:03 AM |
| listing sequential files as one group... | kentm | UNIX for Advanced & Expert Users | 1 | 01-24-2007 06:11 PM |
| group by in files :-) | hellsd | UNIX for Dummies Questions & Answers | 10 | 06-22-2005 12:47 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hello,
Try this find . -mtime -1 -exec rm -rf {} \; -mtime -1 gives you the files for sep 16th i.e today.. find . -mtime -1 -print ---try this first.see if you get 350 files.if yes, execute the above command on the prompt.Thanks |
|
|||||
|
Thanks i got it . Thanks to all for their help.
One more thing i wanted to ask , i have a file which is tar and then gz CurrentCollectorMeterReadBackup20080915.tar.gz How to search for a file log1.txt inside the above file without uncompressing it. I mean to say how to do this CurrentCollectorMeterReadBackup20080915.tar.gz | grep 'log1.txt ' |
|
||||
|
You need to uncompress the data in order to examine it, although of course, you don't need to commit the uncompressed data anywhere. Code:
zcat file.tar.gz | tar tf - log1.txt ... assuming your tar accepts a file name to extract from the tar archive. |
|
|||||
|
i used the below command:It's giving error
zcat CurrentCollectorMeterReadBackup20080915.tar.gz | tar tf - CurrentCollectorMeterReadBackup_20081915051914684 Error: CurrentCollectorMeterReadBackup20080915.tar.gz.Z: No such file or directory tar: tape read error: unexpected EOF |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|