#!/bin/zsh #first script used to create a file with nicer formatting, here just for Genesis for chapter in {0..50}; do for i in {0..50}; do cat Gen_$chapter.html | grep "fnm$i" | tr '\n' '@' | perl -pe "s/
(.*?)<\/div>/Genesis\tGen\t1\t$chapter\t\1\t\2\*/g" | perl -pe "s///g" | perl -pe "s/
.*?<\/sup> (.*?)<\/div>/\1/" | tr '@' '\n' done done