Hi all,
i need some help please:
I have a text document with over 65000 lines of text, which i want to convert into a web page...the problem i find is how the text is aligned at the moment:
Text file example 1:
*****************
************
so when I run this command:
sed -i '10,66748 s/.*/<p>&<p>/' filename it adds start and end of the line so it is displayed in firefox in order as shown here:
Example 2:
***********
Chapter 1 12 And the earth brought forth the green
herb, and such as yieldeth seed according to its
In the beginning God created heaven, and earth. kind, and the tree that beareth fruit, having seed
2 And the earth was void and empty, and each one according to its kind. And God saw
darkness was upon the face of the deep; and the that it was good.
spirit of God moved over the waters. 13 And the evening and the morning were the
3 And God said: Be light made. And light third day.
was made. 14 And God said: Let there be lights made
4 And God saw the light that it was good; and in the firmament of heaven, to divide the day
he divided the light from the darkness. and the night, and let them be for signs, and for
5 And he called the light Day, and the dark- seasons, and for days and years:
*********************
but reading doesn’t make sense as it is all jumbled up...so my question is:
do you know a command or a way to sort the text out so it can be displayed in web browser as shown in example 1.
Thank you in advance
Denis