Skip to content

Commit

Permalink
Display total count of items
Browse files Browse the repository at this point in the history
  • Loading branch information
PipecraftNet committed Mar 9, 2022
1 parent 83cbacf commit a8ef801
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sort.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
grep -E -o "^\- \[.*?\]" README.md | grep -v "" > ._tmp1
grep -E -o "^\- \[.*?\]" README.md | grep -v "" | sort -f > ._tmp2
cat ._tmp2

echo
echo Total: `wc -l ._tmp2 | grep -E -o "\d+ "`
echo
echo Diff:

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

0 comments on commit a8ef801

Please sign in to comment.