bitly/nsq — pull request #416 by matryer (2014-07-22 22:48:24+00:00)
Title: added to_nsq app

Addresses #304

* Added tool and README
* Updated Makefile

## Usage

Publish each line of a file:

```
cat source.txt | to_nsq -topic="topic" -nsqd-tcp-address="127.0.0.1:4150"
```

Publish manually entered lines in a shell:

```
to_nsq -topic="topic" -nsqd-tcp-address="127.0.0.1:4150"
one
two
three
(Ctrl+C to stop)
```

Publish comma separated values from a source file:

```
cat source.txt | to_nsq -delimiter="," -topic="topic" -nsqd-tcp-address="127.0.0.1:4150"
```

Publish three messages, in one go:

```
echo "one,two,three" | to_nsq -delimiter="," -topic="topic" -nsqd-tcp-address="127.0.0.1:4150"
```