Added code comments and did some cleanup.
This commit is contained in:
parent
3e753c07d4
commit
411b040a11
2 changed files with 15 additions and 7 deletions
|
|
@ -85,15 +85,24 @@ 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
|
|||
echo ""
|
||||
echo "<pre>"
|
||||
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 "</pre>"
|
||||
echo ""
|
||||
done
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue