Posts Tagged ‘fortune’

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

My First Blog Entry

Sunday, November 5th, 2006

Today we first met Habib (a colleague from Holland College I study in). We took a newspaper and searched for him a living place. We called from one bulphone to some of the newspaper advertisements but was not able to find any suitable living place for the price he could afford (60 or 70 leva). After that we went to a coffee place called “Central”. Then we went to Mino’s coffee and stayed and talked for 3 or 4 hours with Habib mainly about Bangladej.He told us about different specific things in Bangladej, like for example he explained us the attitude of people to a local people who are musicians (I forgot the exact Bangla’s name of ‘em), he told us Bangla’s people will probably think of us we’re musicians if we go to Bangladej. He said the people appreciate this people as fortune and the musicians live on the hospitality of the people. I went home checked something on the servers. It seems there is a new RC release of clamav 0.90rc2. I installed the new release and tested it but it seemed it has some problems with the clamd.conf’s syntax and I’ve uninstalled the 0.90rc2 and installed the old one which is 0.88.5. Praise God I’m spiritually okay. I’m going to have a sleep now but I’ll first read a little (The Bible). Blessings in the name of Jesus Christ 🙂 !

Great and Holy Friday / Friday of the Crucifix (Remembrance of the holy saving sufferings of the Lord Jesus Christ

Friday, April 22nd, 2011

Friday of the Crucifix of the Lord Christ

Today is the great and sad day for us Christians in which the Lord has been crucified.

It’s a day of a great spiritual sorrow for all the Orthodox Christian.
It’s also the day in which we do venerate the holy shroud (plashtenica) in which the Lord’s body has been wrapped, after it was removed from the life giving cross.

The priest takes the plashtenica and walks through the temple and afterwards we do venerate the holy plashtenica (The dead body of the saviour).

There is a local Orthodox Church tradition which I believe is very specific to the bulgarian orthodox Church.
The plashtenica is placed on a table, the holy gospel and the holy cross are placed by the priest over the plashtenica (the shroud), after which grouped in a line (first the children, then the man, followed by the woman) we the layman do kiss the holy gospel, the cross and the plashtenica showing evidently our love for Christ and his gospel and our respect for the Lord’s Great Cross sufferings. Further on the layman does crawl (under the table with the plashtenica).

child crawling under a table with plashtenica

plashtenica with the immaculate body of Christ

The crawling under the plashtenica in Bulgarian Orthodox Church is a very known tradition by bulgarian people.

The crawling under the table symbolically shows that we take participation in the Lord’s death.
As it’s written that we all who are in Christ are being death for the world after the Holy Baptism.

There are probably other reasons for which the Church has established the passing under of the holy plashtenica which I’m not aware of.

What is sad is that most people does not really understand the real symbolism behind the crossing below the plashtenica (crossing below the table).

Thus many people who know the feast of Great Friday do come to the church to cross below the plashtenica as an act of superstition, as they don’t really understand why they do it.
They simply interpret that crossing below the plashtenica would grant them “good health”, “a life success” or good fortune.

Many of those people who come to crawl under the table, are not a regular on other Church services (Holy Liturgies) and therefore completely miss even the basics of our Christian beliefs.

Many of those people who are not adept in faith, do come to the Church with the only goal “to crawl below the table” and leave the Church immediately after that …

It’s truly sad to see that especially when I know that we Bulgarians are Orthodox Christian nation.
An Orthodox Christian nation who is starting to forget Christianity …

Just to give you an idea on how people have left astray from Orthodox Christian faith I can tell you for sure that the regular Church goers who attend Holy Liturgies and have intermediate knowledge of Orthodox Christianity and Church order in Bulgaria are not more than 4% of all the Bulgarian population.

This means that probably no more than approximately 300 000 of Bulgarians are in a communion with our Bulgarian Orthodox Church and do regularly confess and take the sacraments.

Here is an Orthodox Singing of the core troparion for the day (in Greek):