3 ms·
I have the same habit. I also use a somewhat similar "dry run" trick in `find` calls, such as: $ find foo/ -type f -name 'bar*' -exec echo rm {} \;
by Galanwe 3y ago
I have the same habit. I also use a somewhat similar "dry run" trick in `find` calls, such as:
$ find foo/ -type f -name 'bar*' -exec echo rm {} \;
- smitty1e 3y agoYes, but I usually need to look up the -exec clause, because `{} \;` just feels hinky.
- upon_drumhead 3y agoModern versions has -delete as an option.
- JNRowe 3y agoThat is a GNU findutils extension, and modern means 2004 in this instance¹ ;) I spelunked because I thought "that always worked, didn't it?" ¹ https://git.savannah.gnu.org/cgit/findutils.git/tree/NEWS#n2153 https://git.savannah.gnu.org/cgit/findutils.git/tree/NEWS#n2...