#!/bin/bash # Before running the first time, copy the distributed # exec.witelist to exec.whitelsit.Stock cp -p exec.whitelist exec.whitelist.bak cp exec.whitelist.Stock exec.whitelist perl -ne 'print "$1\n" if /command=\"([^"]+)\"/' ../things/*.things >>exec.whitelist