Saturday, December 31, 2011
Thursday, December 22, 2011
A text modifier script
The task was to
1. get the first letter of the second column and complete third column of a text file
2. convert everything to lower case
3. Combine them to form a single word
So I did the following
cat file1 | awk '{print $2}' | cut -c1 | tr '[A-Z]' '[a-z]' > first
cat file1 | awk '{print $3}' | tr '[A-Z]' '[a-z]' > second
paste first second | awk '{print $1$2} > merged
1. get the first letter of the second column and complete third column of a text file
2. convert everything to lower case
3. Combine them to form a single word
So I did the following
cat file1 | awk '{print $2}' | cut -c1 | tr '[A-Z]' '[a-z]' > first
cat file1 | awk '{print $3}' | tr '[A-Z]' '[a-z]' > second
paste first second | awk '{print $1$2} > merged
Thursday, December 08, 2011
Monday, December 05, 2011
Adding hours in M$ excel
Some time you need to convert AM to PM in excel.
Then the following formula can come handy
If cell e5 contains time as 4:00 AM Then
=e5+Time(12,0,0) will return 16:00 hrs
similary you can do add and subtract operations on the time format in cell
Then the following formula can come handy
If cell e5 contains time as 4:00 AM Then
=e5+Time(12,0,0) will return 16:00 hrs
similary you can do add and subtract operations on the time format in cell
Wednesday, November 23, 2011
Tuesday, October 18, 2011
Who will lead us to winning in this world and eternal living
A recent
discussion with a good friend of mine, turned out to be about the naming of
infants. The names, at times nouns and act as an adjective
sometimes. The names Lakshmi, Lakshiputra, Kubera are
synonymous with wealth. Saraswathi, is synonymous with
knowledge, Sahana is having lot of patience, Dheera means a
courageous person and so on.
We often see the
personality of people differs drastically from their names. Some people believe
that names actually effect the future of the kids, though not sure whether
it is positive or negative
The discussion sparked
off with the names of our respective children. My daughter’s name is Pritha,
which means daughter of the mother earth and one having lots of patience. But
my little one has absolutely no indication of patience. My friend’s son is
named Nakul which means to be fast, but the boy by nature kinda
lazy!
This made me curious
about the names of the Pandava brothers. Five of them- Yudhishtira, Bheema,
Arjuna, Nakul and Sahadeva ,each one with a special power and skill
Following is a
description of their personalities from Wikipedia:
Yudhisthira's true
prowess was shown in his unflinching adherence to satya (truth) and dharma
(righteousness). Bheema is strong, equal to ten thousand elephants,
well-trained and active. Arjuna, whose name means 'bright', has an
acute sense of duty. Nakula is well known for horse caring skills, devastating
handsomeness and Sahadeva having special abilities to care for cows and
has high levels of intelligence.
This consideration
immediately made me think how the five Pandava brothers symbolize an
organization
Pandavas are lead by
Yudhishtira, adhering to Sathya and dharma. Organisations must stick to
policies, made in fairness.
Bheema’s power and
speed is needed for an organization to spread its operations.
Arjuana’s sense of
duty keeps the organization united and working towards achieving the same
goal.
Nakula’s ability
of horse keeping, is the ability of an organization for logistics and
Sahadeva’s ability of cattle rearing, symbolizes feeding the organization, in
other words making resources aka employees healthy and happy.
Policies, Power, Sense
of duty, careful logistic and happy soldiers are winning combination of
any army including the modern army of corporate world
But we still remain
with a million dollar question, who will
lead us to winning both in this world and in eternal living, as pandavas are
lead by Krshna.
Wednesday, September 21, 2011
Monday, September 12, 2011
Subscribe to:
Posts (Atom)



