Replace sed with bash’s pattern substitution
Replace sed with bash’s pattern substitution

Three of the four uses of sed in the script have been replaced with
bash’s pattern substitution (${parameter/pattern/string}), which should
speed up execution a bit since we’re no longer spawning three processes
per substituted parameter.

The one remaining use of sed doesn’t have anything to do with patterns:
sed is used to read the second line of the cheat file (the command). I
could replace this with a head/tail pair. pro: removes all dependencies
to sed; con: spawns two processes instead of one. We’ll see.

lucaswerkmeister/cheats