Skip to content

Commit

Permalink
docs: show sed example
Browse files Browse the repository at this point in the history
  • Loading branch information
maaslalani committed Feb 5, 2024
1 parent 6837593 commit e478766
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e478766

Please sign in to comment.