# msplit

A small utility to parse files containing multi-word strings.

## Installation

All you need is a C compiler and GNU make. Tested on MacOS, but should run on anything.

Edit the Makefile if you need to and then just run `make install`.

## Example

A less practical one:
```
echo "'hi mom' {i can see} (my house) <from here!>" | msplit
hi mom"i can see"my house"from here!"
```

A practical one:
```
msplit /var/log/apache.log | cut -d\" -f6 | head -2
GET /SRID/FUNX/RBX/JSON HTTP/1.1
GET /SRID/FUNX/RBX/JSON HTTP/1.1
```

## Defaults

The following characters are considered opening and closing a quoted string:

```
start = "([{<`'\"";
close = ")]}>''\"";
```

## To do

* Make `matchsplit()` not destroy its input.
* Stick `matchsplit()` in a library.

## Credits

`msplit` project by Cris van Pelt <cris.vanpelt@gmail.com>

`matchsplit()` code "borrowed" from Wessel Dankers.

## License

Distributed under the terms of the MIT License (see the LICENSE file)

# msplit

A small utility to parse files containing multi-word strings.

## Installation

All you need is a C compiler and GNU make. Tested on MacOS, but should run on anything.

Edit the Makefile if you need to and then just run `make install`. If you want to create
a Debian package, run: `debuild -i -us -uc -b`

## Example

A less practical one:
```
echo "'hi mom' {i can see} (my house) <from here!>" | msplit
hi mom"i can see"my house"from here!"
```

A practical one:
```
msplit /var/log/apache.log | cut -d\" -f6 | head -2
GET /SRID/FUNX/RBX/JSON HTTP/1.1
GET /SRID/FUNX/RBX/JSON HTTP/1.1
```

## Defaults

The following characters are considered opening and closing a quoted string:

```
start = "([{<`'\"";
close = ")]}>''\"";
```

## To do

* Make `matchsplit()` not destroy its input.
* Stick `matchsplit()` in a library.

## Credits

`msplit` project by Cris van Pelt <cris.vanpelt@gmail.com>

`matchsplit()` code "borrowed" from Wessel Dankers.

## License

Distributed under the terms of the MIT License (see the LICENSE file)

Add Debian info to readme
Add Debian info to readme
