#!/bin/sh test -z "$1" && { echo usage: $0 file 1>&2; exit 1; } sed 's/^ ; Custom rules$/ #IncludeAgain %A_ScriptDir%\\rules.x/' "$1" | sed 's/^; Custom hotkeys$/#IncludeAgain %A_ScriptDir%\\hotkeys.x/' > drm.tmp mv drm.tmp drm.ahk