An open API service indexing awesome lists of open source software.

https://github.com/filmil/semsort

A program that sorts semantic versions
https://github.com/filmil/semsort

Last synced: about 1 month ago
JSON representation

A program that sorts semantic versions

Awesome Lists containing this project

README

        

# semsort

A program that sorts semantic versions given on the `os.Stdin` and prints them
out, one line at a time, to `os.Stdout`. Comes in handy for use from inside
bash shell scripts.

# Usage

```console
echo "4.5.6 1.2.3" | semsort
1.2.3
4.5.6
```

Also:

```console
echo "1.2.3 1.2.3-rc.1" | semsort
1.2.3-rc.1
1.2.3
```

And:

```console
$ cat <