![]() |
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 |
| UNIX newbie NEWBIE question! | Hanamachi | UNIX for Dummies Questions & Answers | 4 | 03-28-2009 04:10 PM |
| A easy question. | kikikaka | Shell Programming and Scripting | 6 | 11-02-2004 08:07 PM |
| Another easy question | catbad | UNIX for Dummies Questions & Answers | 3 | 04-04-2003 11:06 AM |
| easy question | tamemi | UNIX for Dummies Questions & Answers | 3 | 07-03-2002 04:08 AM |
| Easy question | Bab00shka | UNIX for Dummies Questions & Answers | 4 | 07-02-2002 07:57 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Newbie with an easy question
I'm looking to write a script that takes a certain directory and gzips all its files that are older than 2 days. I've done some research but for the life of me, I can't even get any files gzipped. Any help would be greatly appreciated!
|
|
||||
|
Gzip script
find /folder/path -mtime +2 -exec gzip {} \;
This is what I've come up with so far. Is there a benefit to adding -f to this script? Also, is there a command that would list out the files that were zipped after the above is performed? Thanks |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|