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

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

 






Current Newswire:

Sifting Through Billions and Billions of Bytes

Miro 2.0 - Watch TV Podcasts and Videos in HD

Hands off the Gimp

Course: Using LDAP

Bazaar for Subversion users, part 1 - the basics

Firefox 3.5 - A Really Impressive Release

Linux Migration Guide: Finding Linux Equivalents to Your Favorite Windows Programs

Tiny Core Linux 2.1 Review

5 Top of the Line Twitter Desktop Clients for Linux

SECURITY: How Microsoft benefits from Conficker




Security Engineer (PA)
Next Step Systems
US-PA-Philadelphia

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]) (4619 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