From a8f474af4ed4632634144e2153311eb1c4f55821 Mon Sep 17 00:00:00 2001 From: Brady Joslin Date: Sat, 8 Aug 2020 18:01:48 -0500 Subject: [PATCH] Update trimming the output documentation --- docs/matches.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/matches.md b/docs/matches.md index f88eac4..7575ca6 100644 --- a/docs/matches.md +++ b/docs/matches.md @@ -405,8 +405,8 @@ This extension also supports bash **pipes** as your shell, such as: #### Trimming the output -When working with commands, it's very common to have outputs that also spawn a newline at the end. If you want to remove any -excess spaces/newlines, you can use the `trim` option: +It's very common for commands to have outputs that also spawn a newline at the end. By default a trim option is enabled to remove any +excess spaces/newlines. You can optionally disable the `trim` option: {% raw %} ```yml @@ -417,7 +417,7 @@ excess spaces/newlines, you can use the `trim` option: type: shell params: cmd: "ip a | grep 'inet 192' | awk '{ print $2 }'" - trim: true + trim: false ``` {% endraw %}