(edit: missing word added)
Just a shoutout and a big „Thank You“ to all these developers who provide a „dryrun“ option in their command line utilities. One of the best things I learned as a developer that might save someone‘s ass someday. 👍🏼🤗
Post
(edit: missing word added)
Just a shoutout and a big „Thank You“ to all these developers who provide a „dryrun“ option in their command line utilities. One of the best things I learned as a developer that might save someone‘s ass someday. 👍🏼🤗
As a side note, if you use bash as your shell (others might support it, but it's not required by POSIX, so YMMV), you can use the "^" substitution to make it easy to take dry-run commands like
$ rsync -n -avr $SRC $DEST
$ rename -n 's/old/new/' *.txt
and see what it would do, then remove the -n dry-run flag with
$ ^-n
to run it for real.
Looks like zsh also supports "^" substitution, FWIW.
A space for Bonfire maintainers and contributors to communicate