Fork me on GitHub
#babashka
<
2019-11-08
>
borkdude19:11:20

I just had a situation where I needed to delete all files in a tree that had "conflict" in them. I didn't know how to do this in bash... babashka to the rescue!

find . | grep conflict | bb -i '(doseq [f *in*] (.delete (io/file f)))'

borkdude19:11:11

I have tried this before using xargs but for some reason it never worked