summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2007-12-10 18:56:21 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2007-12-10 18:56:21 -0800
commit688433f5c3da09c9de19fec8d6217764bb5a036c (patch)
treeec1b5e77872e26640d39cf740774ee430806e0ab /scripts
parentf6ec442f339611df91a79c770483d0e6b13566ff (diff)
downloadvyatta-op-688433f5c3da09c9de19fec8d6217764bb5a036c.tar.gz
vyatta-op-688433f5c3da09c9de19fec8d6217764bb5a036c.zip
add wrappers/symlinks for pipe commands (wrappers are needed for command
matching in restricted modes).
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/count4
-rwxr-xr-xscripts/match4
-rwxr-xr-xscripts/no-match4
-rwxr-xr-xscripts/no-more4
4 files changed, 16 insertions, 0 deletions
diff --git a/scripts/count b/scripts/count
new file mode 100755
index 0000000..1ab3796
--- /dev/null
+++ b/scripts/count
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+wc -l "$@"
+
diff --git a/scripts/match b/scripts/match
new file mode 100755
index 0000000..c452824
--- /dev/null
+++ b/scripts/match
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+grep -E -e "$@"
+
diff --git a/scripts/no-match b/scripts/no-match
new file mode 100755
index 0000000..528d80c
--- /dev/null
+++ b/scripts/no-match
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+grep -E -v -e "$@"
+
diff --git a/scripts/no-more b/scripts/no-more
new file mode 100755
index 0000000..59f51e8
--- /dev/null
+++ b/scripts/no-more
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+cat "$@"
+