#!/bin/bash # jm - 15 Feb 2022 - create 17 translation plain text & html bible pages ######################################################################## # note: script & head/close in directory with non-suffix Bible files ######################################################################## for B in `ls *_R17` do cp $B R17-TXT/$B.txt #1 cp bible file to R17-TXT cp $B R17-HTML/ #2 cp bible file to R17-HTML sed -i 's/.*/&
/g' R17-HTML/$B #3 add para tag to txt file cp head-html R17-HTML/$B.html #4 cp header file to R17-HTML cat R17-HTML/$B >> R17-HTML/$B.html #5 append content to header info rm R17-HTML/$B #6 rm intermediate html file cat close-html >> R17-HTML/$B.html #7 add closing tag mv $B R17-ORIG #8 move orig when processed done ######################################################################## # # 1) edit chapters, mv edited file to BIBLE-17 until ready to run script # 2) mv BIBLE-17/*_R17 . # 3) sh ./build-html # 4) when all 1,189 chapters are done, move them to web server # # -rw-r--r-- 1 john john 3738 Feb 14 22:44 build-html # this script # -rw-r--r-- 1 john john 160 Feb 13 20:21 head-html # html & iso details # -rw-r--r-- 1 john john 8 Feb 13 20:20 close-html # closing tag # ---------------------------------------------------------------------------------------- # drwxr-xr-x 2 john john 69632 Feb 13 20:22 Z-To-EDIT # chapters to be extracted and sent to BIBLE-17 # drwxr-xr-x 2 john john 4096 Feb 14 22:46 BIBLE-17 # edited chapters - no suffix # drwxr-xr-x 2 john john 4096 Feb 14 22:53 R17-TXT # web version of text # drwxr-xr-x 2 john john 4096 Feb 13 20:22 R17-HTML # web version of html # ---------------------------------------------------------------------------------------- # drwxr-xr-x 3 john john 4096 Feb 14 22:47 Z-Build-NOTES # old scripts # drwxr-xr-x 3 john john 4096 Feb 14 22:47 R17-ORIG # files processed ######################################################################## # sed -i 's/.*/&
/g' HTML-17/1148_59_James_02_R17.txt # echo "