Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alshdavid/rrm
Recursively Find and Remove
https://github.com/alshdavid/rrm
Last synced: 26 days ago
JSON representation
Recursively Find and Remove
- Host: GitHub
- URL: https://github.com/alshdavid/rrm
- Owner: alshdavid
- Created: 2024-03-20T00:06:56.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-06-14T00:01:21.000Z (7 months ago)
- Last Synced: 2024-11-24T19:19:13.396Z (about 1 month ago)
- Language: Rust
- Homepage:
- Size: 28.3 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Recursively Find and Remove 👓🔥
This is a cross-platform utility that will recursively search a directory for files & folders with a specific name or names, find all occurrences then prompt you to delete them.
While you can achieve this in `bash` with a combination of `find` and `rm -rf`, the motivation for this tool is to use the same syntax for this operation across all operating systems and shell environments.
## Example
```
rrm -f "node_modules" -f ".DS_Store" ~/Development
```Outputs:
```
Looking within:
/home/alshdavid/DevelopmentLooking for:
node_modules
.DS_StoreFound:
/home/alshdavid/Development/my-project/another_one/.DS_Store
/home/alshdavid/Development/my-project/node_modules
/home/alshdavid/Development/my-project/.DS_StoreDelete matches? [y/N] y
/home/alshdavid/Development/my-project/another_one/.DS_Store
/home/alshdavid/Development/my-project/.DS_Store
/home/alshdavid/Development/my-project/node_modules
```# Development 🧩
## Prerequisite Tools
- [Rust](https://rustup.rs/)
- [Just](https://github.com/casey/just)## Building
```
just build
target=release just build
```## Running Development Build
```
just run
just run -f node_modules ~/Development
```