summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/bash_completion.d/10vyatta-op21
1 files changed, 21 insertions, 0 deletions
diff --git a/etc/bash_completion.d/10vyatta-op b/etc/bash_completion.d/10vyatta-op
index 52be05a..d5ea362 100644
--- a/etc/bash_completion.d/10vyatta-op
+++ b/etc/bash_completion.d/10vyatta-op
@@ -291,6 +291,27 @@ _vyatta_op_run ()
return $ret
}
+# "pipe" functions
+count ()
+{
+ wc -l "$@"
+}
+
+match ()
+{
+ grep -E -e "$@"
+}
+
+no-match ()
+{
+ grep -E -v -e "$@"
+}
+
+no-more ()
+{
+ cat "$@"
+}
+
# don't initialize if we are in configure mode
if [ "$_OFR_CONFIGURE" == "ok" ]; then
return 0