forked from robrwo/bashtrash
-
Notifications
You must be signed in to change notification settings - Fork 1
danikron/bashtrash
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
bashtrash - a bash-shell implementation of the Freedesktop.org
trashcan specification.
This project was originally a quick hack to show that one could
implement a compliant trashcan utility using bash and standard Unix
commands. It has evolved to have options to make it a (somewhat)
compatible as a replacement for rm.
It requires the following utilities:
awk
basename
bash
cat
getopt
mkdir
mktemp
mv
sed
Usage: trash [OPTION]... FILE...
Move files into the trash.
Options:
-h show this help message and exit
-v explain what is being done
-i prompt before moving every file
-r, -R ignored (for compatability with rm)
-f ignore non-existent files, never prompt
-e empty trash for working directory
Copyright (c) 2009-2011, Robert Rothenberg <[email protected]>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
About
Freedesktop-compliant trashcan implemented in bash script
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Shell 100.0%