NAME

keep - a program that keeps the files you tell it to and deletes everything else in the current directory.


SYNOPSIS

keep [OPTION]... FILE...


DESCRIPTION

Sometimes you find yourself in a situation where the list of files in a directory that you want to keep is shorter than the list of files you want to delete. keep is a program designed for just such an occasion.


EXAMPLE

As an example, say that you have a directory containing:

banana kiwi strawberry grapefruit melon cumquat coconut pineapple

Now, you want to delete every file in the directory except kiwi, coconut, and melon. Traditionally, you would use a command similar to the following:

$ rm banana strawberry grapefruit cumquat pineapple

Here is the alternative, using the keep command:

$ keep kiwi coconut melon

As you can see, that is much easier and more logical in a situation like this.


OPTIONS

-i, --interactive
Enables interactive mode. keep will prompt you before deleting any files.

-v, --versbose
Enables verbose mode. keep will describe in detail what it is doing.

-f, --force
Does not prompt prior to deleting files. Use this option with caution.

-h, --help
Displays a brief help message.

--version
Displays the version information for keep.


MORE EXAMPLES

Example 1

This example demonstrates basic operation of keep.

Before:

canada mexico russia england germany france poland

The command:

$ keep germany poland

After:

germany poland

Example 2

Like all other UNIX commands, you can pass wildcards to keep.

Before:

chicago chicken cow cheese

The command:

$ keep chic*

After:

chicago chicken

Example 3

keep also allows you to to keep nothing, or in other words delete everything in the current directory. The following command is identical to rm -f *:

$ keep -f


LINKS

SourceForge.net project page

CVS Repository


INSTALLATION INSTRUCTIONS

Please refer to the README for detailed installation instructions.


DOWNLOAD

Binary RPM Package

Source RPM Package

Source Tarball


BUGS

keep currently does not work with directories. Error checking is very bad. Not very many options supported yet.


AUTHOR

Darren L. LaChausse - the_trapper@users.sourceforge.net


COPYRIGHT

Copyright (c) 2004, Darren L. LaChausse - ALL RIGHTS RESERVED

SourceForge.net Logo