Look for identifying patterns, then use a script to pull the info out
same as the line of code is doing. If you have the ability to see the
final output then you can see what it is pulling out of this file,
otherwise you are going to have to guess or ask the client what it is
supposed to look like then from here it would be easy to then write a
bot to split the file up and move the info into a db with those
fields:-)
Regards,
Andrew Scott
-----Original Message-----
From: Tony Hicks [mailto:[EMAIL PROTECTED]]
Sent: Sunday, 23 September 2001 11:04 AM
To: CF-Talk
Subject: Re: Anyone know Perl AND CF?
As you'll see below, it seems impossible to convert this to a database
format that would make it worthwhile to convert to a database format.
What I
believe it does is find an entry tabbed with <a
name=todaysdayandmonthAM>
(there are also 'pm' entries.. And pulls only that out..
What I want to do is either clone this CGI script in perl or make it so
that
it writes each entry to a text file.. And then I'd call it with.
Thanks,
Tony Hicks
PS.. Is there ANY way this could be converted to a database with a bot?
With
the fields BOOK, CHAPTER, VERSE, VERSETEXT, DEVOTEXT, DAY, MONTH...
-------------
#!/bin/sh
echo "Content-Type: text/html"
echo
echo
sed -n -e "/`date +%m\\\/%d\\\/PM`/,/a name=/p" /path/to/mornevebod.html
-------------- A sample of mornevebod.html -------------- The whole file
is
1.5 mb.. and thanks!
<a name="01/04/AM"></a>
<p>
"Grow in grace, and in the knowledge of our Lord and Saviour
Jesus Christ."
--2 Peter 3:18
<p>
"Grow in grace"--not in one grace only, but in <i>all</i> grace.
Grow in that root-grace, <i>faith.</i> Believe the promises more
firmly than you have done. Let faith increase in fulness,
constancy, simplicity. Grow also in <i>love.</i> Ask that your love
may become extended, more intense, more practical, influencing
every thought, word, and deed. Grow likewise in <i>humility.</i> Seek
to lie very low, and know more of your own nothingness. As you
grow <i>downward</i> in humility, seek also to grow
<i>upward</i>--having
nearer approaches to God in prayer and more intimate fellowship
with Jesus. May God the Holy Spirit enable you to "<i>grow in the
knowledge of our Lord and Saviour.</i>" He who grows not in the
knowledge of Jesus, refuses to be blessed. To know Him is "life
eternal," and to advance in the knowledge of Him is to increase
in happiness. He who does not long to know more of Christ, knows
nothing of Him yet. Whoever hath sipped this wine will thirst
for more, for although Christ doth satisfy, yet it is such a
satisfaction, that the appetite is not cloyed, but whetted. If
you know the love of Jesus--as the hart panteth for the
water-brooks, so will you pant after deeper draughts of His
love. If you do not desire to know Him better, then you love Him
not, for love always cries, "Nearer, nearer." Absence from
Christ is hell; but the presence of Jesus is heaven. Rest not
then content without an increasing acquaintance with Jesus.
Seek to know more of Him in His divine nature, in His human
relationship, in His finished work, in His death, in His
resurrection, in His present glorious intercession, and in His
future royal advent. Abide hard by the Cross, and search the
mystery of His wounds. An increase of love to Jesus, and a more
perfect apprehension of His love to us is one of the best tests
of growth in grace.
<p>
<a name="01/05/AM"></a>
<p>
"And God saw the light, that it was good: and God divided the
light from the darkness."
--Genesis 1:4
<p>
Light might well be good since it sprang from that fiat of
goodness, "Let there be light." We who enjoy it should be more
grateful for it than we are, and see more of God in it and by
it. Light <i>physical</i> is said by Solomon to be sweet, but
<i>gospel</i> light is infinitely more precious, for it reveals
eternal things, and ministers to our immortal natures. When the
Holy Spirit gives us <i>spiritual</i> light, and opens our eyes to
behold the glory of God in the face of Jesus Christ, we behold
sin in its true colours, and ourselves in our real position; we
see the Most Holy God as He reveals Himself, the plan of mercy
as He propounds it, and the world to come as the Word describes
it. Spiritual light has many beams and prismatic colours, but
whether they be knowledge, joy, holiness, or life, all are
divinely good. If the light received be thus good, what must the
<i>essential</i> light be, and how glorious must be the place where
He reveals Himself. O Lord, since light is so good, give us more
of it, and more of Thyself, the true light.
<p>
No sooner is there a good thing in the world, than <i>a
division is necessary.</i> Light and darkness have no communion;
God has divided them, let us not confound them. Sons of light
must not have fellowship with deeds, doctrines, or deceits of
darkness. The children of the day must be sober, honest, and
bold in their Lord's work, leaving the works of darkness to
those who shall dwell in it for ever. Our Churches should by
discipline divide the light from the darkness, and we should by
our distinct separation from the world do the same. In judgment,
in action, in hearing, in teaching, in association, we must
discern between the precious and the vile, and maintain the
great distinction which the Lord made upon the world's first
day. O Lord Jesus, be Thou our light throughout the whole of
this day, for Thy light is the light of men.
<p>
<a name="01/06/AM"></a>
<p>
"Casting all your care upon Him; for He careth for you."
--1 Peter 5:7
<p>
It is a happy way of soothing sorrow when we can feel--"HE
careth for me." Christian! do not dishonour religion by always
wearing a brow of care; come, cast your burden upon your Lord.
You are staggering beneath a weight which your Father would not
feel. What seems to you a crushing burden, would be to Him but
as the small dust of the balance. Nothing is so sweet as to
<pre>
<p>
"Lie passive in God's hands,
And know no will but His."
<p>
</pre>
O child of suffering, be thou patient; God has not passed thee
over in His providence. He who is the feeder of sparrows, will
also furnish you with what you need. Sit not down in despair;
hope on, hope ever. Take up the arms of faith against a sea of
trouble, and your opposition shall yet end your distresses.
<i>There is</i> One who careth for you. His eye is fixed on you, His
heart beats with pity for your woe, and his hand omnipotent
shall yet bring you the needed help. The darkest cloud shall
scatter itself in showers of mercy. The blackest gloom shall
give place to the morning. He, if thou art one of His family,
will bind up thy wounds, and heal thy broken heart. Doubt not
His grace because of thy tribulation, but believe that He loveth
thee as much in seasons of trouble as in times of happiness.
What a serene and quiet life might you lead if you would leave
providing to the God of providence! With a little oil in the
cruse, and a handful of meal in the barrel, Elijah outlived the
famine, and you will do the same. If God cares for you, why need
you care too? Can you trust Him for your soul, and not for your
body? He has never refused to bear your burdens, He has never
fainted under their weight. Come, then, soul! have done with
fretful care, and leave all thy concerns in the hand of a
gracious God.
<p>
<a name="01/07/AM"></a>
<p>
"For me to live is Christ."
--Philippians 1:21
<p>
The believer did not always live to Christ. He began to do so
when God the Holy Spirit convinced him of sin, and when by grace
he was brought to see the dying Saviour making a propitiation
for his guilt. From the moment of the new and celestial birth
the man begins to live to Christ. Jesus is to believers the one
pearl of great price, for whom we are willing to part with all
that we have. He has so completely won our love, that it beats
alone for Him; to His glory we would live, and in defence of His
gospel we would die; He is the pattern of our life, and the
model after which we would sculpture our character. Paul's words
mean more than most men think; they imply that the <i>aim and end
of his life</i> was Christ--nay, his life itself was Jesus. In the
words of an ancient saint, he did eat, and drink, and sleep
eternal life. Jesus was his very breath, the soul of his soul,
the heart of his heart, the life of his life. Can you say, as a
professing Christian, that you live up to this idea? Can you
honestly say that for you to live is Christ? Your business--are
you doing it <i>for Christ</i>? Is it not done for self-
aggrandizement and for family advantage? Do you ask, "Is that a
mean reason?" For the <i>Christian</i> it is. He professes to live
for Christ; how can he live for another object without
committing a spiritual adultery? Many there are who carry out
this principle in some measure; but who is there that dare say
that he hath lived wholly for Christ as the apostle did? Yet,
this alone is the true life of a Christian--its source, its
sustenance, its fashion, its end, all gathered up in one
word--Christ Jesus. Lord, accept me; I here present myself,
praying to live only in Thee and to Thee. Let me be as the
bullock which stands between the plough and the altar, to work
or to be sacrificed; and let my motto be, "Ready for either."
<p>
----------
Search the Holy Bible: http://www.bibleclicks.com
----- Original Message -----
From: Stephen Hait <[EMAIL PROTECTED]>
To: CF-Talk <[EMAIL PROTECTED]>
Sent: Saturday, September 22, 2001 11:38 AM
Subject: Re: Anyone know Perl AND CF?
> I might be able to help. If you provide the perl code (it might be
> helpful to include more than the single line in order to better
> understand the context) and, if you can, your understanding of
> what you are trying to do I would be glad to see if I can help.
>
> Regards,
> Stephen
>
>
> > I need to find someone who knows perl and CF who would be willing to
> > tell me how to write one line of Perl code to Cold Fusion.. It uses
> > the "sed" statement..
> >
> > Can anyone help.. please?
> >
> > Thanks,
> > Tony Hicks
> > ----------
> > Search the Holy Bible: http://www.bibleclicks.com
> >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists