view bin/sled @ 12428:8d99a86a2a7d draft

<b_jonas> slashlearn password//The password of the month is Ebay DVD demagnetizer
author HackEso <hackeso@esolangs.org>
date Mon, 01 Nov 2021 20:08:38 +0000
parents 77454e3e15f3
children
line wrap: on
line source

#!/bin/bash
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" ;