Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/robrwo/bashtrash
Freedesktop-compliant trashcan implemented in bash script
https://github.com/robrwo/bashtrash
Last synced: about 1 month ago
JSON representation
Freedesktop-compliant trashcan implemented in bash script
- Host: GitHub
- URL: https://github.com/robrwo/bashtrash
- Owner: robrwo
- Created: 2010-06-02T14:15:04.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2011-11-06T17:57:48.000Z (about 13 years ago)
- Last Synced: 2023-06-26T01:07:25.031Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 93.8 KB
- Stars: 11
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
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
sedUsage: trash [OPTION]... FILE...
Move files into the trash.
Options:
--version show program's version number and exit
-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 promptCopyright (c) 2009-2011, Robert Rothenberg
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.