Tuesday, August 21, 2007

hello world bash and perl script

I remember my very first hello world program when I was at younger age. I was 13. I created a hello world program using Basic programming language. Basic language at that time was capable of creating 2D games already which can be played from your TV screen via Atari game console. A cassette tape was the technology back then before and I used it on saving my hello world program as a storage devices. River Raider was a very well known 2D war plane strategy game before that time.

Now, this entry is very simple. Covering a hello world script using bash and perl.

Creating Hello world bash script. Yes, launch your fave CLI editor and save hello.sh with the following contents:

Hello.sh
~~~~~~~~~~~~~~~~~~~~~~~~~~
#!/bin/bash
echo Hello World!
~~~~~~~~~~~~~~~~~~~~~~~~~~

Alternatively, a hello world perl script.

Hello.pl
~~~~~~~~~~~~~~~~~~~~~~~~~~
#!/usr/bin/perl
print "Hello World\n"
~~~~~~~~~~~~~~~~~~~~~~~~~~

Make them root executable like so.

# chmod 755 hello.sh hello.pl

Very basic. That is all.

No comments:

Post a Comment

Thanks for the comment and for peeping into my blogspot. Hope you enjoy your reading them.

If you wish to receive posts updates, you can subscribe directly from this link:

http://feeds.feedburner.com/VertitosBlogspot

using any RSS reader or even Google Reader.

Again, appreciate your site visits.

Cheers then

VeRTiTO
Email: vertito@gmail.com