diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-01-23 11:48:35 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-01-23 11:48:35 -0500 |
commit | 4d9129e7436d87ca0228d7e8e02c527873b660f1 (patch) | |
tree | 91ae271f67519acf0f38ee0f4d00638bcb570fed /user-pages-lastline.sh |
initial commit
Diffstat (limited to 'user-pages-lastline.sh')
-rwxr-xr-x | user-pages-lastline.sh | 8 |
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 |