new

ColdC/Functions/new · 223 B

From the archive ColdC-html.tar.gz

Download the archive   « Back to the archive contents

#!/bin/sh

name=$@

echo -n "\"$name\"...?"
read ok

if [ -f "$name.html" ]; then
    echo "ack, $name.html already exists!"
    exit
fi

sed -e "s/##XXX##/$name()/g;s/##name##/$name/g" template > $name.html

vi $name.html

Site Stats

Snippets: 1791
Codebases: 571