fun fact about sed

if you need to use a "/" in your pattern and don't want to worry about escaping, you're allowed to just use a different delimiter for the regular expression



this will replace "/my/pattern" with "/my/replacement"

@SuricrasiaOnline yes! i only learned about that a few years ago, and it makes life sooo much easier! i often use # as my delimiter

@SuricrasiaOnline I do this ALL the time, since otherwise I have to many /\/ things in there.

: works well for me and is easier for my brain to parse

@SuricrasiaOnline Leaning Toothpick Syndrome (LTS) is a curable disorder! best of all, this feature is copied by most everything that expects a regex.

perl -pC -e'y# !-~

Sign in to participate in the conversation

cybrespace: the social hub of the information superhighway jack in to the mastodon fediverse today and surf the dataflow through our cybrepunk, slightly glitchy web portal support us on patreon or liberapay!