This website works better with JavaScript.
Home
Explore
Help
Sign In
automation
/
linux-utils
mirror of
https://git.bjphoster.com/automation/linux-utils.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
added rmbut - removes everything but a regexp-capable first argument (-rf) from current directory
master
Bryan Pedini
6 years ago
parent
bfb3935ff9
commit
ff1df27eb4
1 changed files
with
3 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
noos-noarch/home/bryanpedini/bin/rmbut
+ 3
- 0
noos-noarch/home/bryanpedini/bin/rmbut
View File
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
ls "$(pwd)" | grep -v "$1" | xargs rm -rf
Write
Preview
Loading…
Cancel
Save