4 ms·
That's clever, only do really dangerous things if you have a way to carefully review the steps. Another way is sometimes: `echo *.txt~` and when you like the r
by _nalply 3y ago
That's clever, only do really dangerous things if you have a way to carefully review the steps.
Another way is sometimes: `echo *.txt~` and when you like the result, replace `echo` with `rm`.
- kevincox 3y agoI do this too. Although I usually do `echo rm .txt~` then just remove the `echo` once everything works. Also works well for things like `parallel` and `xargs` where you can do `parallel echo rm -- .txt` and it basically prints out a script. Then you can remove the `echo` to run it.