view bin/sled @ 8624:6922961990ce

<oerjan> mkx bin/culprits//hoag "$@" | awk \'{print substr($1,2,length($1)-2)}\' | sed "s/.$/\\x0F&/" | xargs
author HackBot
date Mon, 27 Jun 2016 23:52:47 +0000
parents c6382f86a76d
children
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" && { echo -n "$key//"; cat "$key"; }