aboutsummaryrefslogtreecommitdiff
path: root/vpeval
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-05-24 13:31:06 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-05-24 13:31:06 +0200
commit026d9f86c67790d96ded1de8faeaba213a9f5631 (patch)
tree0fc5cb6f48107988984599d10972c06ad094f982 /vpeval
downloadvp-026d9f86c67790d96ded1de8faeaba213a9f5631.tar.gz
First commit
Diffstat (limited to 'vpeval')
-rwxr-xr-xvpeval4
1 files changed, 4 insertions, 0 deletions
diff --git a/vpeval b/vpeval
new file mode 100755
index 0000000..bd0db27
--- /dev/null
+++ b/vpeval
@@ -0,0 +1,4 @@
+#!/bin/sh
+c=`cat | sed '/^#/d'`
+echo "$c"
+echo "$(eval "$c" 2>&1)" | sed 's/^/# /'