1 2 3 4 5 6 7 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