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
- Host: GitHub
- URL: https://github.com/filmil/semsort
- Owner: filmil
- License: apache-2.0
- Created: 2018-09-12T05:24:18.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-20T06:00:17.000Z (over 6 years ago)
- Last Synced: 2025-01-25T07:26:05.755Z (3 months ago)
- Language: Go
- Size: 26.4 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 <