#!/bin/sh c=`cat | sed '/^#/d'` echo "$c" echo "$(eval "$c" 2>&1)" | sed 's/^/# /'