1 2 3 4 5 6 7 8 9 10
#!/bin/sh INCLUDE=$1/`hostname -f` if [ ! -r $INCLUDE ]; then echo "ERROR:no-file-$INCLUDE" else echo '@hook pre "# File included: '$INCLUDE'";' cat $INCLUDE fi