]> git.phdru.name Git - phdru.name/phdru.name.git/blobdiff - find_html_no_tmpl
Add scripts to find html files with or w/o templates
[phdru.name/phdru.name.git] / find_html_no_tmpl
diff --git a/find_html_no_tmpl b/find_html_no_tmpl
new file mode 100755 (executable)
index 0000000..a80902d
--- /dev/null
@@ -0,0 +1,10 @@
+#! /bin/sh
+
+while getopts d opt; do
+   case $opt in
+      d ) del="-delete" ;;
+   esac
+done
+shift `expr $OPTIND - 1`
+
+exec find "${1:-.}" -name '*.html' \! -exec "$0_helper" '{}' \; -print $del