From 688433f5c3da09c9de19fec8d6217764bb5a036c Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Mon, 10 Dec 2007 18:56:21 -0800 Subject: add wrappers/symlinks for pipe commands (wrappers are needed for command matching in restricted modes). --- scripts/count | 4 ++++ scripts/match | 4 ++++ scripts/no-match | 4 ++++ scripts/no-more | 4 ++++ 4 files changed, 16 insertions(+) create mode 100755 scripts/count create mode 100755 scripts/match create mode 100755 scripts/no-match create mode 100755 scripts/no-more (limited to 'scripts') 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 "$@" + -- cgit v1.2.3