![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| Is it possible to see the content of the compressed file? | bobprabhu | UNIX for Advanced & Expert Users | 2 | 06-19-2008 04:55 AM |
| How to search for text within compressed file | HLee1981 | UNIX for Advanced & Expert Users | 8 | 09-06-2007 06:50 AM |
| Check if file compressed or not | badg3r | Shell Programming and Scripting | 4 | 09-14-2006 04:58 AM |
| renaming a compressed file to filename without .Z | bruceps | UNIX for Dummies Questions & Answers | 8 | 08-16-2005 02:32 AM |
| Import data from compressed file | ap_gore79 | Shell Programming and Scripting | 4 | 06-18-2004 01:39 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
check to see if a file is compressed before trying to compress
I simply need to compress all files in a directory that are not already compressed and that are older than 10 days?
I have this so far. I need to add to this so I don't try and compress file that are already compressed. Or if you think this can be simplified let me know. Thx. find /my/dir -name "*.xml*" -mtime +10 -ls find /my/dir -name "*.xml*" -mtime +10 -exec gzip -f {} \; Thanks for reading |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|