Create a Python program that behaves like a UNIX text processing program (such as cat, grep, tr, etc.). Your program should take text as input (any text, or a particular text of your choosing) and output a version of the text that has been filtered and/or munged. Be creative, insightful, or intentionally banal.
Code
Original text (At the twilight | by Rumi)
At the twilight,
a moon
appeared in the sky.
Then it landed on earth to look at me.
Like a hawk
stealing a bird at the time of prey;
That moon stole me
and rushed back into the sky.
I looked at myself,
I did not see me anymore.
For in that moon,
my body
turned as fine as soul.
The nine spheres
disappeared in that moon;
The ship of my existence
drowned in that sea.
Result
At the soft glowing light from the region of the atmosphere and outer space seen from the earth when the sun is below the horizon, caused by the reflection of the sun's rays from the atmosphere,
a natural satellite of the the planet on which we live, visible by reflected light from the sun
appeared in the region of the atmosphere and outer space seen from the earth.
Then it landed on the planet on which we live to look at me.
Like a a diurnal warm-blooded egg-laying vertebrate with broad rounded wings and a long tail
stealing a warm-blooded egg-laying vertebrate at the time of prey;
That natural satellite of the the planet on which we live, visible by reflected light from the sun stole me
and rushed back into the region of the atmosphere and outer space seen from the earth.
I looked at myself,
I did not see me anymore.
For in that natural satellite of the the planet on which we live, visible by reflected light from the sun,
my physical structure, including the bones, flesh, and organs,
turned as fine as soul.
The nine spheres disappeared in that natural satellite of the the planet on which we live, visible by reflected light from the sun;
The ship of my state of living or having objective reality
drowned in that expanse of salt water that covers most of the earth's surface and surrounds its landmasses.
No comments:
Post a Comment