view bin/sled @ 9516:5318e49e91f3

<oerjan> sled bin/dos2unix//s,^,/bin/,
author HackBot
date Sat, 29 Oct 2016 19:37:13 +0000
parents ae4d924e677f
children 61719e6e2316
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" ;