summaryrefslogtreecommitdiff
path: root/user-pages-lastline.sh
diff options
context:
space:
mode:
Diffstat (limited to 'user-pages-lastline.sh')
-rwxr-xr-xuser-pages-lastline.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/user-pages-lastline.sh b/user-pages-lastline.sh
new file mode 100755
index 0000000..8258ece
--- /dev/null
+++ b/user-pages-lastline.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+cd user-pages.cache
+for file in *; do
+ printf '%s\t%s\n' \
+ "$file" \
+ "$(< "$file" sed -n '$p' | sed -r 's|<br\s*/?>|\n|g' | sed -n '$p')"
+done