Articles tagged with sed

  1. Quick Codemods with sed

    Posted on in programming

    I had a few different changes last week (in two different repos) that required one-line changes in lots of files.

    Quick note here that I'm using GNU sed. If you're on a Mac, you can use GNU sed, too (via Homebrew, for example).

    Example 1: Change Status

    In this first …

  2. Removing a Single Line from known_hosts With sed

    Posted on in System Administration

    Ever so often, something changes on the network, and you find that your .ssh/known_hosts file has gotten out of date. Usually this happens after an upgrade or device change. You'll get the rather ominous warning that REMOTE HOST IDENTIFICATION HAS CHANGED!

    If you are confident that someone isn't doing …

Slaptijack's Koding Kraken