Luke, rambling…

Search

SearchSearch

Recent Writings

  • Day in the Life of someone who potentially has ADHD maybe

    Aug 21, 2023

    • #post/self
  • Preparing this site

    Jul 30, 2023

    • #post/selfhosting
    • #meta
  • Why I don't write

    Apr 06, 2023

    • #post/self

See 1 more →

linux-cli-sed

Sep 21, 2022, 1 min read

  • #tool

↑ linux-cli

Stream editor. Similar to linux-cli-awk.

-i means replace inplace.
s means substitute. g means global.
You can use any delimiter.

sed -i s%SITE_LOCATION=\"\$HOME/sites/lukerambling\"%SITE_LOCATION=\"\$HOME/sites/quartz\"%g ~/zettel/meta/shell/*.sh

Links §

UNIX and Linux: sed | Panix
Learn sed: Definitive Guide to sed

Graph View

Backlinks

  • RegEx

©2023. Unless stated otherwise, content on this site is licensed under CC BY-SA 4.0.

  • Mastodon
  • Discord