Posts Tagged ‘bible’

Linux bash: Add line numbering to text file with NL – number lines command

Friday, March 22nd, 2013

Lets say you have a plainjt text TXT file with sentences and you would like to put quickly line numbering in a Linux bash shell. First thing that might pop up to your mind is to use a loop cat text file and print it line by one together with output of incremental values counted from 0 to the number of lines the file contains. This would work but is useless work. As coreutils package already contains a tool called nl ( /usr/bin/nl ). Here is paste from header of nl manual page;

 

NAME
       nl – number lines of files

SYNOPSIS
       nl [OPTION]… [FILE]…
 

Thus to put line numbering to lets say this fortune's bible quotes plain text file;

$ nl bible > bible_quotes_numbered.txt

Here is a small chunk of bible_quotes_numbered.txt;

 

$ cat bible_quotes_numbered.txt

 1  In the beginning God created the heaven and the earth.
     2                  — Genesis 1:1
     3  %
     4  And the earth was without form, and void; and darkness was upon
     5  the face of the deep. And the Spirit of God moved upon the face of
     6  the waters.
     7                  — Genesis 1:2
     8  %
     9  And God said, Let there be light: and there was light.
    10                  — Genesis 1:3
    11  %
    12  And God saw the light, that it was good: and God divided the light
    13  from the darkness.
    14                  — Genesis 1:4
    15  %
    16  And God called the light Day, and the darkness he called Night.
    17  And the evening and the morning were the first day.
    18                  — Genesis 1:5
    19  %
    20  And God said, Let there be a firmament in the midst of the waters,
    21  and let it divide the waters from the waters.
    22                  — Genesis 1:6
    23  %
    24  And God made the firmament, and divided the waters which were under
    25  the firmament from the waters which were above the firmament: and
    26  it was so.
    27                  — Genesis 1:7
    28  %
    29  And God called the firmament Heaven. And the evening and the morning
    30  were the second day.
    31                  — Genesis 1:8
    32  %
    33  And God said, Let the waters under the heaven be gathered together
    34  unto one place, and let the dry land appear: and it was so.
    35                  — Genesis 1:9
    36  %
    37  And God called the dry land Earth; and the gathering together of
    38  the waters called he Seas: and God saw that it was good.
    39                  — Genesis 1:10
    40  %
    41  And God said, Let the earth bring forth grass, the herb yielding
    42  seed, and the fruit tree yielding fruit after his kind, whose seed
    43  is in itself, upon the earth: and it was so.
    44                  — Genesis 1:11
 

 

It is worthy mentioning the same opeartion can be achieved with good old /bin/cat with cat -n, e.g.;

$ cat -n bible >bible_quotes_numbered.txt

 

On *BSDs nl command is not available, thus cat -n is very good to know of since it works for numbering ASCII plain text files on Free/Net/OpenBSDs

Download Bulgarian Orthodox Bible in various file formats

Monday, September 28th, 2009

I’ve came to the conclusion that there is no easily to find
bulgarian orthodox bible for download.
Thus after spending an hour Googling for Bulgarian Orthodox bible
I finally found one. The one I found was in DOC and I thought
that it would be nice if the Bulgarian Orthodox Bible is available
for download in various formats for users convenience.
For that reason I’ve converted the bulgarian orthodox bible I found
to a few of the most famous desktop reading formats out there and
stored it on my machine. I’ve also built a small website through
which The Bulgarian Orthodox
Bible can be downloaded
. Currently the website offers a
bulgarian orthodox available for download in (DOC, ODT, TXT, PDF)
formats, as well as the same formats are prepared for download in RAR
archive. I truly hope this would be useful to the fellow orthodox
bulgarian brothers and sisters.
END—–

Orthodox New Testament Bible & Psalms (Psalter) translated from Greek

Saturday, September 26th, 2009

In relation with some of my previous posts earlier. I looked for an Orthodox versionof the Bible in English. My instant search for that was stimulated because I suspect that many of the protestantbibles are not accurate enough.
For instance many words meanings are translated to be in accordance with sometraditional protastant popular teachings. This of course if happens too often could sometimes even change wholesentence meanings.
All I can find so far is a translation of the Orthodox New Testament & The Psalms
from Greek. Originally they reside on on the followingEastern Orthodox website . For some convenience I’ve mirrored both the Orthodox New Testament & The Psalms.
They can be downloeded:
1. The Orthodox New Testament Septuagint translation from greek
2. As well as the The Psalter
.A version of the Bulgarian Orthodox Bible is located here .Some more interesting articles concerning orthodoxy are located on the orthodox study bible website
.That’s mostly what I can find as an orthodox bible. If I find something more I’ll blog it.By the way today I red about St. Justin the Martyr. Who used to be a phisopher in the tradition of Sacrates and Heraclitesand converted to Christianity and accepted martyrdom for Christ in the distant 165 A.D.Read further for this great Saint and early christian apologist here
END—–

Geri’s Birthday

Friday, January 18th, 2008

The day before yesterday, I was in a pretty bad mood and decided to went out. I went to the Mino’s coffee and accidently it happened that Geri a friend of mine had a birthday it was refreshing to spend some timewith real people even thought I thought about all’s behaviour and particularly “how hipocrity they are”.I drinked two glasses of wine for which Miro (Geri’s husband) said it smells like socks. Good heavens my nose was stalled. Yesterday I was out for a coffee with Lily :). 

The weekend was a sort of peaceful.Servers and everything runs fine thanks to the Lord! (ofcourse). I’ll end the post with a quote fromthe bible through the small program called “verse”.

Here is the quote” “For the eyes of the LORD run to and fro throughout the whole earth, to show himself strong in the behalf of them whose heart is perfect toward him…” II Chronicles 16:9 :)END—–

God’s mercy

Thursday, September 6th, 2007

Glory be to the Father, The Son and The Holy Spirit! The Lord is very merciful. I’ve thinked a lot about my life.And I’ve realized that I’ve done many mistakes and that I don’t strive to hear his voice. Nor to follow his path formy life. So recently I’m praying for the Lord to guide me and teach me how to hear and understand his voice!As he said in the Holy Bible: “My sheeps hear my voice”. He have to teach me howto hear his voice.Also I’ve prayed few days ago about a sallary increase and Hallelujah! Today When I went to Varna I saw howthe lord heard my prayer I have a sallary increase. But I was increadibly happy because the Lord is hearing my prayers.Currently I think that God is healing my physical sickness. For which Glory be to Him The One Ever Living Lord and Our Lord Jesus Christ. Also I was very happy that a friend (Stoian) with which we discussed the topics of Our Faith the last Yeastern has received Christ as a Saviour. And is also going to the Orthodox Church. He has something I have lost a lot of days before the Fire in me the Lord has fired when I believed. Thanks Lord ! for every mercy and blessing you’re doing towards me.Mostly the last days I start realizing that we are so sinful and our minds are so deluded that we try to explain The Existence of God ( Something I tried to do for a very long time ), without actually seeking God but using our human knowledge and understanding. Let God not give me to do this anymore. Blessed, Blessed, Blessed are you Lord Shabbaoth Glory to your Heavenly Throne! I even smiled today looking at the sky :] God is merciful!!! END—–

Sunday

Monday, July 9th, 2007

The day went faster than normal other days. I wake up in the morning went to Church on Liturgy.Then I went home watched some Cartoon Network. Later I decided going to my uncle to read himthe bible for some time, but he was not home I take a watermelon from the local market for mygrandmother. It’s nice to see somebody being happy about something :]. Later i went to my uncle.It’s sad to see someone like in his condition :[. I really want he to get better I read himfrom the Bible The Holy Evangelic text of Luka, I hope at least he has understood somethingfrom the Evangelical Text. Habib called home from London later, this was a real joyHabib is such a nice guy i really want God to bless him in everyhing for he desirves.We spake a lot about the life in England. The bad conditions there, the low paid job,how hard he is living there. About how we miss as friends, about some close friends.After the conversation I decided to go out. I first went to the Mino’s coffee. There weresome people there but I got angry at the non-sense conversations and decided to go to theFountain actually there was almost the same. Later I Toto and Mitko drinked beer in thecity park. And I went home … After the usual Evening Orthodox Prayers I will go to bed in 20 or 30 minutes.END—–

Quiet and Peaceful Day

Tuesday, March 6th, 2007

The day was Peaceful and Quiet. After I wake up Narf called and we see each other in front of the college, Nomen was ther elso we drink coffee on the fountain. Mitko told us experiences he had from Sofia, we laughed a lot. Then we go to the Chineese restaurant with Amridikon and Needless. I like the Rise with Vegetables there really awesome food :]. After that I bought “A Practical Teacher in C” and went home. Lily come home for 10 minutes, I read the Holy Bible for some time then I read The Living of the Martyr’s. Later Niki and Habib come home, and was my guests for some time. After that I take a shower chatted a little with Order and now I intend to go to bed. Thanks to God for taking care for my life and giving me peace and joy through his Holy Spirit. Thanks God!END—–

Feeling Bad

Saturday, January 27th, 2007

Well I’m not so sick anymore. I’m feeling bad emotionally spiritually. I’m not sure. I have no idea what’s happening in my life. I don’t see the guidance of God. I’m having sexual thoughts and wan’t to sleep with some female, I guess this is not good since I’m a christian. Actually I really don’t have idea what to do with my life. FUCK I’m so LOST! I was out with Lily for a pizza and a coffee smoked 4 cigarettes then went to a new Market here in the town. Well the market was very brighty and clean, on two stages the one was a food/bevarage market. The other with tech stuff. Some time before we went to the market. My mood got fucked up and I stopped talking. Well shit why the Hell I’m here. I have a re-exam in Monday. It was supposed to study at something today. But my state didn’t allows me too. I just want to lay somewhere and die. I’m so lost I feel spiritually broken again. How much, how much will this thing continue. When will God bless me with that which my soul desires? Will I be alive for this moment? I’m wondering more and more. I’ve read some of my bible after I went home some prophecies about the End Times, the book was Ezdra. After that listened a little of NiN feeled even more bad than before right now I’m listening again to http://www.christianindustrial.net. Lord where are you leading me too? Why don’t see a vision for my life? Does my life have really a meaning and what it is. I’ve googled for some time for a phrase like “Christianity not working for me” and found a page which claimed. There is no life after death as classical Christianity claims and that heaven and hell are internal states experienced, here on earth, I think maybe there is some truth in this to some extent. Guess time will show (Or maybe Death).

Still Here

Wednesday, January 17th, 2007

Aloha. Still here. Two days ago I ran Heroes 3 under my FreeBSD box successfully, there was a terrible bug in fullscreen mode which needed fix I’ve used the loki’s site patch to patch the heroes 3 start binary with xdelta. The loki installer was a terrible pain in the ass I used my l337test sk!llZ :} to be able to patch the binary by hand. About the last post yes I was desperate still not good still living. Today I was on exam again a failure probably, nothing new.

As I often used to say in the fast if something starts bad then it overs bad too. See my life show this very well. I’m suffering terrible and still waiting for something to set me free to happen. What would be the turning point? Will there be turning point at all? No idea. If God is such good and powerful as he said in the bible and his promises are true then he will deliver me and set me free on a good ground. Still hoping … Prodigy — Speedway, else the earth is probably his favourite experiment.