3 ms·
You can achieve this also by using find and its -ok option, instead of -exec, that way find will ask for confirmation before doing anything.
by noodly 15y ago
You can achieve this also by using find and its -ok option, instead of -exec, that way find will ask for confirmation before doing anything.
- JOnAgain 15y agoThanks for the -ok option. was not aware -- but yeah, I've been a heavy user of -exec option for years, and it always blows my mind when people get crazy complicated xargs going.
- barrkel 15y agoThat's not the same thing at all; I could emulate that in a script with 'read' and 'if', but that's not what I do.