Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Armin Hanisch
@Linkshaender@bildung.social  ·  activity timestamp 2 weeks ago

(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. 👍🏼🤗

#Programming #CommandLine #DryRun

  • Copy link
  • Flag this post
  • Block
Tim Chase
@gumnos@mastodon.bsd.cafe replied  ·  activity timestamp 2 weeks ago

@Linkshaender @stefano

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.

  • Copy link
  • Flag this comment
  • Block
Tim Chase
@gumnos@mastodon.bsd.cafe replied  ·  activity timestamp 2 weeks ago

Looks like zsh also supports "^" substitution, FWIW.

  • Copy link
  • Flag this comment
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.0 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login