![]() |
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 |
| How to search for text within compressed file | HLee1981 | UNIX for Advanced & Expert Users | 8 | 09-06-2007 06:50 AM |
| Search first line of compressed file | cbreiner | UNIX for Advanced & Expert Users | 1 | 09-05-2007 05:52 PM |
| compressed file was ftpied in ascii mode needs recovery | raj2610 | SCO | 3 | 02-22-2006 04:32 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 if file compressed or not
Is there a way I can check if a file is comppressed or not? (Be it tar/gzip or compress). trying to write a generic housekeeping scrit that will delete files over 6 months old and compress any uncompressed files if less than 6 months old. But not sure if there is a clever way to check except for parsing filename to see if it has .tar/.gz or .Z.
|
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|