Project

rm_old

0.0
No commit activity in last 3 years
No release in over 3 years
easily delete old files
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.14
~> 10.0

Runtime

 Project Readme

rm_old

rm_old deletes old files

Usage

Installation:

$ gem install rm_old

Options:

    rm_old --age=n [--test] <files> (c) 2016 @reednj
    Options:
    -a, --age=<s>    delete any files older than this (ex. 1d, 36h)
    -t, --test       print the list of matched files, but don't delete
    -v, --version    Print version and exit
    -h, --help       Show this message

Examples:

# delete all .gz files older than 14 days
rm_old -a 14d *.gz

# delete all files older than 2 hours
rm_old --age 2h *

# same as before but will print a list of what would be deleted
rm_old --test --age 2h *

License

The gem is available as open source under the terms of the MIT License.