diff --git a/kernelstats/kernelstats.sh b/kernelstats/kernelstats.sh index 14e126a..62745a7 100755 --- a/kernelstats/kernelstats.sh +++ b/kernelstats/kernelstats.sh @@ -80,20 +80,29 @@ done echo "Content-type: text/plain; charset=utf-8" echo "" -for VERSION in "6.9.${R_6_9}" "6.8.${R_6_8}" "6.6.${R_6_6}" "6.1.${R_6_1}" "5.15.${R_5_15}" "5.10.${R_5_10}" "5.4.${R_5_4}" "4.19.${R_4_19}" ; do +for VERSION in "6.9.${R_6_9}" "6.8.${R_6_8}" "6.6.${R_6_6}" "6.1.${R_6_1}" "5.15.${R_5_15}" "5.10.${R_5_10}" "5.4.${R_5_4}" "4.19.${R_4_19}"; do echo "
"
- cat {{ site.data_dir }}kernelstats/ChangeLog-$(echo ${VERSION} | cut -d "." -f1).$(echo ${VERSION} | cut -d "." -f2).* | \
+ cat {{ site.data_dir }}kernelstats/ChangeLog-$(echo ${VERSION} | cut -d "." -f1).$(echo ${VERSION} | cut -d "." -f2).* | \
+ # grep for all lines including the string "Author".
grep 'Author' | \
+ # Get the second field after the ":" delimiter.
cut -d':' -f2 | \
+ # Sort all lines.
sort | \
+ # Get uniq lines and prefix the count.
uniq -c | \
+ # Remove leading whitespaces and tabs.
sed 's/^[ \t]*//' | \
+ # Numerically sort the lines.
sort -nr | \
+ # Get the top 50 lines.
head -n 50 | \
- sed 's@<@\<@g' | \
- sed 's@>@\>@g'
+ # Replace "<" with "$lt;".
+ sed 's/\</g' | \
+ # Replace ">" with "$gt;".
+ sed 's/>/\>/g'
echo ""
echo ""
done
diff --git a/lua/test.lua b/lua/test.lua
index fb718c8..5b507c1 100755
--- a/lua/test.lua
+++ b/lua/test.lua
@@ -2,7 +2,7 @@
permalink: /cgi/lua/test.lua
---
-package.path = '{{ site.libdir }}/lua/?.lua;' .. package.path
+package.path = '{{ site.libdir }}/lua/?.lua;'..package.path
require('xw3.http')
@@ -25,7 +25,7 @@ print(os.execute('/usr/bin/env | /usr/bin/sort'))
print()
--print(debug.traceback("Stack trace"))
--print(debug.getinfo(1))
-print('HTTP_COOKIE:')
+print('HTTP_COOKIES:')
print(os.getenv("HTTP_COOKIE"))
print()
@@ -37,4 +37,3 @@ for k, v in pairs(cookies) do
print(k, v)
end
-