view bin/sled @ 11243:5c41fb3f6567

<oerjan> # Stolen from Roger9//`learn Bureaucracy (from French bureau, "burrow") is a political system in which squirrels rule the nation, and burrow their nuts.
author HackBot
date Wed, 22 Nov 2017 00:43:46 +0000
parents 0ebb25d333b4
children 1e6e3a07b5f4
line wrap: on
line source

[[ "$1" == ?*//* ]] || { echo 'usage: sled file//script'; exit 1; }; key="${1%%//*}"; value="${1#*//}"; [[ -f "$key" ]] || { echo 'Rosebud!'; exit 1; }; sed -i "$value" "$key" ;