From eb64f68968b22d6b07d23fac6555aff14f01431c Mon Sep 17 00:00:00 2001 From: Cas Cremers Date: Wed, 26 Mar 2008 13:53:08 +0100 Subject: [PATCH] Added loop script which I had always wanted before. --- scripts/loop-spdl.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 scripts/loop-spdl.sh diff --git a/scripts/loop-spdl.sh b/scripts/loop-spdl.sh new file mode 100755 index 0000000..97190b5 --- /dev/null +++ b/scripts/loop-spdl.sh @@ -0,0 +1,12 @@ +#!/bin/sh +# +# Script to iterate over all .spdl files +# +# Usage: +# +# loop-spdl.sh command_to_iterate +# +CMD=$* + +find .. -name '*.spdl' | xargs -n 1 $CMD +