Mercurial > repo
view bin/sled @ 12178:348a8e7e3a2a draft
<kspalaiologos> ` cat <<<"kspalaiologos is a brainfuck addict. He\'s secretly disassembling brainfuck code for a casino that lost the source code. Apparently knows the secret of Malbolge" > ../wisdom/kspalaiologos
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Thu, 21 Nov 2019 21:00:54 +0000 |
parents | 1e6e3a07b5f4 |
children | 77454e3e15f3 |
line wrap: on
line source
opts="${2--i}" [[ "$1" == ?*//* ]] || { echo 'usage: sled file//script'; exit 1; }; key="${1%%//*}"; value="${1#*//}"; [[ -f "$key" ]] || { echo 'Rosebud!'; exit 1; }; sed $opts "$value" "$key" ;