From 2deec2b774133379bf780a728219134da0128c39 Mon Sep 17 00:00:00 2001 From: nat-chan Date: Sat, 28 Dec 2019 03:38:29 +0900 Subject: [PATCH] stable --- list.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 list.sh diff --git a/list.sh b/list.sh new file mode 100755 index 0000000..8c34234 --- /dev/null +++ b/list.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +#|sort -r|head -1 +curl -sL https://api.github.com/repos/neovim/neovim/releases |grep -oP '(?<=tag_name": ")v[0-9.]*' > a +curl -sL https://api.github.com/repos/nat-chan/hello_actions/releases|grep -oP '(?<=tag_name": ")v[0-9.]*' > b +cat a b b|sort|uniq -u|tr . ' '|awk '$2 >= 4'|tr ' ' .|head -1