From e4787667506d615b8f0e990bd3cb22af423f5259 Mon Sep 17 00:00:00 2001 From: Maas Lalani Date: Mon, 5 Feb 2024 12:09:50 -0500 Subject: [PATCH] docs: show `sed` example --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 302de86..d47cbbe 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,13 @@ To generate an image of your code, run: freeze main.go -o out.svg ``` +or pass data through `stdin`: + +```sh +# capture lines 5 - 20. +sed -n 5,20p main.go | freeze +``` + Your image file will live in `out.svg`. ## Installation