Search found 8 matches

by mosquitochalkie
09 Jan 2011 10:49
Forum: DOS Batch Forum
Topic: Referencing Bible Verses Individually
Replies: 14
Views: 13996

Re: Referencing Bible Verses Individually

This is the command line I used

C:\bible>gawk "/^[A-Z]/{s=$0;}/^[0-9]/{print s\".\"$0 }" file

where bible.txt is the name of the file I want to change.

mosquitochalkie
by mosquitochalkie
09 Jan 2011 10:08
Forum: DOS Batch Forum
Topic: Referencing Bible Verses Individually
Replies: 14
Views: 13996

Re: Referencing Bible Verses Individually

To ghostmachine4, I have now tested your gawk code after downloading and installing gawk and the only output I get is a file named gawk which has no extension and a file size of zero. The results I previously attributed to you were actually the results of the batch coding supplied by !K. Sorry I led...
by mosquitochalkie
09 Jan 2011 09:45
Forum: DOS Batch Forum
Topic: Referencing Bible Verses Individually
Replies: 14
Views: 13996

Re: Referencing Bible Verses Individually

Once again I find that I must apologize to both !K and ghostmachine4. It was !K who supplied the batch coding and it is that coding upon which all my subsequent comments have been made. I did not even see the gawk coding supplied by ghostmachine4 until just a few minutes ago. I sincerely apologize t...
by mosquitochalkie
09 Jan 2011 08:51
Forum: DOS Batch Forum
Topic: Referencing Bible Verses Individually
Replies: 14
Views: 13996

Re: Referencing Bible Verses Individually

Desired output Genesis 1 The Beginning-Day One Genesis 1:1 In the beginning God created the heavens and the earth. Genesis 1:2 and darkness was over the surface of the deep, and the Spirit of God was hovering over the waters. Genesis 1:3 And God said, “Let there be light,” and there was light. Genes...
by mosquitochalkie
09 Jan 2011 00:28
Forum: DOS Batch Forum
Topic: Referencing Bible Verses Individually
Replies: 14
Views: 13996

Re: Referencing Bible Verses Individually

Actual text follows Genesis 1 The Beginning-Day One 1 In the beginning God created the heavens and the earth. 2 and darkness was over the surface of the deep, and the Spirit of God was hovering over the waters. 3 And God said, “Let there be light,” and there was light. 4 God saw that the light was g...
by mosquitochalkie
08 Jan 2011 09:21
Forum: DOS Batch Forum
Topic: Referencing Bible Verses Individually
Replies: 14
Views: 13996

Re: Referencing Bible Verses Individually

I apologize ghostmachine4, I called you !k in my reply to you. I understand that on such a large file it would take a long time but why would it just cut out after 4 verses. Could this be a memory problem? Should I break the file up into smaller chunks? I did not understand your reply to problem 2. ...
by mosquitochalkie
08 Jan 2011 09:05
Forum: DOS Batch Forum
Topic: Referencing Bible Verses Individually
Replies: 14
Views: 13996

Re: Referencing Bible Verses Individually

Thank you very much for this !k. Your code works well but there are two problems 1) it only did 4 out of 1189 chapters and 2) there are periodic sub-headings on their own lines within each chapter as well and your code places the 'book and chapter' in front of them too. Thank you again for your time...
by mosquitochalkie
08 Jan 2011 06:20
Forum: DOS Batch Forum
Topic: Referencing Bible Verses Individually
Replies: 14
Views: 13996

Referencing Bible Verses Individually

I am unsure whether this is the correct forum, if it is not, I apologize in advance. I have a text file of the entire bible in which each verse is a separate paragraph which begins with the number of the verse and each chapter has a heading of the name of the book and the chapter number. ie. Genesis...