Sunday, April 12, 2009

An Easter Story: More ASCII Art For Linux And Unix

Hey There,

It's yet another holiday that we haven't ASCII'ed yet, and we've got another script to print a somewhat-tame Easter story, and picture, to your terminal. Yet again, I've gone back to Joan Stark's ASCII Art Gallery to find a really good picture. And I don't just pick her site because it comes up as Google search result number one for every query I run; there actually is an enormous quantity of high quality ASCII art there. Check it out if you still haven't.

If you're interested in any of our other ASCII art holiday script postings, just check out this page, which is a general search for ASCII Art on our site and you're sure to find most of them there.

If the pictorial representation of the script output below isn't large enough, click on it once to be smacked in the face with the HUMONGOUS version ;)

easter ASCII art

For this installment, I've attached two scripts to the post. The first one is the straight-up bash script. The second is the same script, except with all the spaces padded with "X"'s. If you're having problem maintaining the spaces when you copy/paste the original script, just copy/paste the padded one and then (in vi, or whatever your favorite editor is) substitute "X" with a space character for all occurrences. In vi, that would be an "ex" command like:

[esc]:g/X/s// /g

or

[esc]:%s// /g

Enjoy and Happy Easter :)


Creative Commons License


This work is licensed under a
Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License



REGULAR

#!/bin/bash

#
# easter.sh
#
# 2009 - Mike Golvach - eggi@comcast.net
#
# Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License
#

echo -en "...THE FIRST EASTER BUNNY... by Francine M. O'Connor\n (ASCII Art by joan stark)\n\n __ /^\\\\\n .' \ / :.\ This is the story of a long-eared rabbit\n / \ | :: \ who couldn't learn to do the bunny hop.\n / /. \ / ::: | His ears were floppy, his feet were sloppy,\n | |::. \ / :::'/ he'd hippity hop, then he'd trip and plop.\n | / \::. | / :::'/\n \`--\` \' \`~~~ ':'/\`\n / ( So this little rabbit developed the habit\n / 0 _ 0 \ of staying awake when the sun went down.\n \/ \_/ \/ He'd stay up all night, \n -== '.' | '.' ==- till the morning light, and \n /\ '-^-' /\ practice his hopping just outside of town.\n \ _ _ / \n .-\`-((\o/))-\`-. \n _ / //^\\ \ _ On the first Easter morn, \n.\"o\".( , .:::. , ).\"o\". just before dawn,\n|o o\\\\\ \:::::/ //o o| He was startled by a bright\n \ \\\\\ |:::::| // / and blinding light.\n \ \\\\\__/:::::\__// / And Jesus was there in the \n \ .:.\ \`':::'\` /.:. / shimmering glare,\n \':: |_ _| ::'/ smiling at that funny bunny's plight.\n jgs \`---\` \`\"\"\"\"\"\` \`---\`\n \n Don't worry, little lad, and don't be so sad, .-\"-.\n for humankind will celebrate this special day. .'=^=^='.\n You must bring the word to every beast and bird /=^=^=^=^=\\\\\n that I have risen and am in the world to stay. :^= HAPPY =^;\n |^ EASTER! ^|\n You should've seen that cottontail hop away, :^=^=^=^=^=^:\n feeling mighty proud to be the chosen one. \=^=^=^=^=/\n Though this story is quite old, it can now be retold \`.=^=^=.'\n to make little children smile on Easter morn. \`~~~\`\n"



PADDED
#!/bin/bash

#
# easter.padded.sh
#
# 2009 - Mike Golvach - eggi@comcast.net
#
# Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License
#

echo -en "...THEXFIRSTXEASTERXBUNNY...XbyXFrancineXM.XO'Connor\nXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX(ASCIIXArtXbyXjoanXstark)\n\nXXXXXX__XXXXXXXXXXXX/^\\\\\nXXXX.'XX\XXXXXXXXXX/X:.\XXXXXXXThisXisXtheXstoryXofXaXlong-earedXrabbit\nXXX/XXXXX\XXXXXXXXX|X::X\XXXXXXwhoXcouldn'tXlearnXtoXdoXtheXbunnyXhop.\nXX/XXX/.XX\XXXXXXX/X:::X|XXXXXXHisXearsXwereXfloppy,XhisXfeetXwereXsloppy,\nX|XXXX|::.X\XXXXX/X:::'/XXXXXXXhe'dXhippityXhop,XthenXhe'dXtripXandXplop.\nX|XXX/X\::.X|XXX/X:::'/\nX\`--\`XXX\'XX\`~~~X':'/\`\nXXXXXXXXX/XXXXXXXXX(XXXXXXXXXXXSoXthisXlittleXrabbitXdevelopedXtheXhabit\nXXXXXXXX/XXX0X_X0XXX\XXXXXXXXXXofXstayingXawakeXwhenXtheXsunXwentXdown.\nXXXXXX\/XXXXX\_/XXXXX\/XXXXXXXXHe'dXstayXupXallXnight,X\nXXXX-==X'.'XXX|XXX'.'X==-XXXXXXXXXtillXtheXmorningXlight,XandX\nXXXXXX/\XXXX'-^-'XXXX/\XXXXXXXXpracticeXhisXhoppingXjustXoutsideXofXtown.\nXXXXXXXX\XXX_XXX_XXX/XXXXXXXXXXXXX\nXXXXXXX.-\`-((\o/))-\`-.XXX\nXX_XXX/XXXXX//^\\XXXXXX\XXX_XXXXOnXtheXfirstXEasterXmorn,X\n.\"o\".(XXXX,X.:::.X,XXXX).\"o\".XXXXXjustXbeforeXdawn,\n|oXXo\\\\\XXXX\:::::/XXXX//oXXo|XXHeXwasXstartledXbyXaXbright\nX\XXXX\\\\\XXX|:::::|XXX//XXXX/XXXXXXandXblindingXlight.\nXX\XXXX\\\\\__/:::::\__//XXXX/XXXXAndXJesusXwasXthereXinXtheX\nXXX\X.:.\XX\`':::'\`XX/.:.X/XXXXXXXXshimmeringXglare,\nXXXX\'::X|_XXXXXXX_|X::'/XXXXXXsmilingXatXthatXfunnyXbunny'sXplight.\nXjgsX\`---\`X\`\"\"\"\"\"\`X\`---\`\nXXXXXXXXXXXXXXXXXXXXXXXXXX\nXXXXDon'tXworry,XlittleXlad,XandXdon'tXbeXsoXsad,XXXXXXXXXXX.-\"-.\nXXXXforXhumankindXwillXcelebrateXthisXspecialXday.XXXXXXXX.'=^=^='.\nXXXXYouXmustXbringXtheXwordXtoXeveryXbeastXandXbirdXXXXXX/=^=^=^=^=\\\\\nXXXXthatXIXhaveXrisenXandXamXinXtheXworldXtoXstay.XXXXXX:^=XHAPPYX=^;\nXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX|^XEASTER!X^|\nXXXXYouXshould'veXseenXthatXcottontailXhopXaway,XXXXXXXX:^=^=^=^=^=^:\nXXXXfeelingXmightyXproudXtoXbeXtheXchosenXone.XXXXXXXXXXX\=^=^=^=^=/\nXXXXThoughXthisXstoryXisXquiteXold,XitXcanXnowXbeXretoldXX\`.=^=^=.'\nXXXXtoXmakeXlittleXchildrenXsmileXonXEasterXmorn.XXXXXXXXXXX\`~~~\`\n"




, Mike




Discover the Free Ebook that shows you how to make 100% commissions on ClickBank!



Please note that this blog accepts comments via email only. See our Mission And Policy Statement for further details.