-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
83f5354
commit 9f4ff2b
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Cleanup utility | ||
|
||
The utility will keep up to **N** (defaults to 5) of the latest subdirectories and removes all the others. | ||
|
||
Modification time will be used when determining the sort order of subdirectories. | ||
|
||
## Usage examples | ||
|
||
* `cleanup <PATH-TO-DIRECTORY> -l 5` keeps up to 5 latest subdirectories of the path provided | ||
* `cleanup <PATH-TO-DIRECTORY>` keeps up to 5 (default value) subdirectories of the path provided | ||
* `cleanup -v` displays the version information of the utility script | ||
* `cleanup` - displays help text of the utility script | ||
|
||
## Building | ||
|
||
Build the binaries by running `./go-executable-build.bash` and check the **data** directory for resulting binaries. You | ||
may change the defined platform as needed. | ||
|
||
Default platforms are `linux/386`, `linux/amd64` and `darwin/amd64`. |