Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for fname in *.htm *.html; do
- awk '{ if ($0 ~ /<p>[ ]*[0-9]+:(001)/) { match($0, /[0-9]+/); print "<h1>Chapter " substr($0, RSTART, RLENGTH) "</h1>"; print $0; } else print; }' "${fname}" > "output/${fname}"
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement