Linux Today: Linux News On Internet Time.
Search Linux Today
search.internet.com
Linux News Sections:  Blog -  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Preferences
Contribute
Link to Us
Search
Linux Jobs

Become a Marketplace Partner

internet.commerce
Be a Commerce Partner














The Linux Channel at internet.com
Linux Today
Enterprise Linux Today
Apache Today
JustLinux.com
Linux Planet
PHPBuilder
All Linux Devices
Technology Jobs

JustTechJobs.com

LinuxToday Newsletters
Subscribe News
Subscribe PR
Subscribe Security

internet.com
IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

 






Current Newswire:

A New, Easy To Use Disk Formatter For GNOME

Help On The Way: Five Great Linux Support Sites

Artwork for Ubuntu Jaunty Already Impressive

Memo to Dell: Pump Ubuntu Into Your Global Partner Network

Vietnam to widely use open source software

Commercial open source business strategies in 2009 and beyond

ReactOS - Open Source Windows

New Freescale processors target Linux netbooks

AbiWord project gets funding for ODF improvements

Tweet from the Command Line with Twidge




Unix/Red Hat Systems Adminsitrator
The Computer Merchant, Ltd
US-PA-Lansdale

Justtechjobs.com Post A Job | Post A Resume
:Simple Arithmetic In Bash, Perl and Awk--More Porting
Simple Arithmetic In Bash, Perl and Awk--More Porting
May 29, 2008, 07 :30 UTC (0 Talkback[s]) (4076 reads)

[ Thanks to Mike Golvach for this link. ]

"Today we're going to continue along on our series of posts dealing with porting code between the bash shell, Perl and awk. In previous posts, we've looked at the basics regarding simple string variables, simple one-dimensional arrays and associative arrays (sometimes referred to as hashes or 'lookup tables').

"Before we move on to logical programming constructs (such as if-conditionals and while-loops), it's important to go over a few other basic concepts that require translation in order to work in the same manner in all three languages. Today we're going to demonstrate how each of bash, Perl and awk deal with simple arithmetic. Note that we won't be dealing specifically with floating point math (although it is possible to do) since that's slightly beyond the scope of this article (but it will be--huge hint--the subject of our next post in this series... variable scope, that is)..."

Complete Story

Related Stories:
Vrije Universiteit: Tanenbaum-Torvalds Debate: Part II(May 15, 2006)
Linux.com: CLI Magic: ifup, ifdown, ifstatus(Feb 07, 2006)
Linux.com: CLI Magic: OpenSSH + Bash(Jan 24, 2006)
LinuxPlanet: Sobell on the Bourne Again Shell and the Linux Command Line(Nov 21, 2005)



No talkbacks posted.
  Home | Search Talkbacks | Customize View    Top of Page  



Enter your comments below:

* Your Name:

* Your Email Address:

* Subject:

CC: [will also send this talkback to an E-Mail address]

* Comments:

Tags allowed:<I>,<B> and <U>. See our talkback-policy for more about talkback content.

Fields marked with * are required!






..............................




All times are recorded in UTC.
Linux is a trademark of Linus Torvalds.
Powered by Linux, Apache and PHP

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers