Skip to content

Commit

Permalink
Update sort.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
PipecraftNet committed Apr 25, 2022
1 parent f6b502d commit 0fbbd60
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sort.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
grep -E -o "^\- \[.*?\]" README.md | grep -v "" > ._tmp1
grep -E -o "^\- \[.*?\]" README.md | grep -v "" | sort -f > ._tmp2
grep -A 9999 "## 🧰 在线工具箱" README.md | grep -B 9999 "## 🧰 其他工具箱" > ._tmp0
grep -E -o "^\- \[.*?\]" ._tmp0 > ._tmp1
grep -E -o "^\- \[.*?\]" ._tmp0 | sort -f > ._tmp2
cat ._tmp2

echo
Expand All @@ -8,4 +9,4 @@ echo
echo Diff:

diff ._tmp1 ._tmp2
rm -f ._tmp1 ._tmp2
rm -f ._tmp0 ._tmp1 ._tmp2

0 comments on commit 0fbbd60

Please sign in to comment.