From 1a8bb2a2afa289b17c16a9de85271cb24db0bd76 Mon Sep 17 00:00:00 2001 From: crccheck Date: Sat, 6 Jan 2018 23:27:25 -0600 Subject: [PATCH] doc regex filter better --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 0afa56e..30126df 100644 --- a/README.md +++ b/README.md @@ -48,3 +48,8 @@ List Kinesis streams: Display contents of a stream, "hello-world", starting from 15 minutes ago: kinesis-console-consumer 'hello-world' --type-timestamp "$(($(date +%s) - 900))" + +Only display records that have something that looks like an IP address. +NOTE: `grep` is preferred, but not all platforms have it. + + kinesis-console-consumer 'hello-world' --regex-filter "\d+\.\d+\.\d+\.\d+"