[logo] retain - retain only specified files

Download

To obtain my PGP/GnuPG key, see these instructions.

Back to software page.

Introduction

retain is a command-line utility that removes all files except the ones specified in its argument list. Conceptually, it's the opposite of rm (or del on Windows).

Usage

retain [OPTIONS] filename [...]

Options

--directory dir
-d dir
The directory to operate on. Defaults to the current directory.
--no-exec
-n
Show what would be done, but don't actually remove the files.
--recursive
-r
Remove subdirectories, too (recursively).
--verbose
-v
Display verbose messages while processing the directory.

Installation

The usual:

  1. Unpack the tarball or Zip file.
  2. Change your directory to the resulting retain-1.1.1 directory.
  3. Run: python setup.py install

Author

Brian M. Clapper, <bmc @ clapper . org>

Copyright

© 2008 Brian M. Clapper

License

BSD-style license. See accompanying LICENSE file.

$Id: index.html,v 1.7 2005/05/20 14:37:58 bmc Exp $