rm -i - BSD

Users browsing this thread: 2 Guest(s)
seninha
Long time nixers
I (with the help of the #bash IRC channel) created this function that simulates GNU rm -I (the less-intrusive interactive functionality that GNU rm has). Just put it in your ~/.kshrc: https://0x0.st/-7Xb.sh

Edit: What that function actually does is: it prompts for confirmation for each file, as usual. But only if you give as argument three or less files and, if calling it recursively (-r), only non-directory files were given.
If you give as argument more then one files or (with the -r option) a directory, it asks for confirmation only once for all files (instead of prompting for each file).


Messages In This Thread
rm -i - by pfr - 21-11-2021, 08:16 AM
RE: rm -i - by venam - 21-11-2021, 08:18 AM
RE: rm -i - by pfr - 21-11-2021, 08:31 AM
RE: rm -i - by mattrose - 21-11-2021, 10:48 AM
RE: rm -i - by seninha - 21-11-2021, 12:48 PM
RE: rm -i - by movq - 21-11-2021, 02:34 PM
RE: rm -i - by z3bra - 21-11-2021, 03:55 PM
RE: rm -i - by pfr - 26-11-2021, 01:27 AM
RE: rm -i - by maksim - 05-10-2022, 05:45 AM