Unix Review > Archives > 2006 > January 2006

UnixReview.com
January 2006

Regular Expressions: Rexx Still Going Strong

by Cameron Laird and Kathryn Soraiz

Because you're compulsive about four-letter names.

Or because you're a refugee from the orphanages of OS/2 or Amiga, who likes the reliability of Unix, but misses a few more friendly faces. Or because you're curious about how good a lightweight language can be after a quarter century of refinement. Or because you have responsibilities that stretch across Windows, OS/400, MVS, Linux, and even rarer operating systems.

Or simply because you want to get work done and are curious about whether Rexx might fit your situation better than the scripting language you're using now. All of these are good reasons to set aside a morning and introduce yourself to the oldest "personal programming language".

Like Cobol, in a good way

Consider:

     DO i = 1 TO SourceLine()
       SAY "The "i"-th line is '"SourceLine(i)"'."
     END
     EXIT
Although most of you haven't learned Rexx before, you probably guessed its output correctly:
      The 1-th line is 'DO i = 1 TO SourceLine()'.
      The 2-th line is '    SAY "The "i"-th line is '"SourceLine(i)"'."'.
      The 3-th line is 'END'.
      The 4-th line is 'EXIT'.    
Rexx programs use English-language words, like "END", where many languages punctuate, as with '}'. Rexx source otherwise is conventional-looking, for anyone familiar with sh, Perl, C, or similar languages. Regina is a portable, open source project that's packaged well for Linux and many other operating systems (including OpenVMS, BeOS, QNX, and more) and is present in several popular Linux distributions.

Sys Admin Spotlight

CMP DevNet Spotlight

Career Center: Going It Alone
Ever dreamed of leaving that corporate development job for the challenges of independent software consulting? Here are 10 tips to make your solo career path a success.

In the News

CD-ROM

Sys Admin and The Perl Journal CD-ROM version 11.0

Version 11.0 delivers every issue of Sys Admin from 1992 through 2005 and every issue of The Perl Journal from 1996-2002 in one convenient CD-ROM!

Order now!




MarketPlace

�Six Sigma� Certified?
100% Online-Six Sigma Certificate From Villanova -Find Out More Now.

PMP Certification-Online
Nation's Leading Online PMP Course From Villanova-Find Out More Now.

Automate Software Builds with Visual Build Pro
Easily create an automated, repeatable process for building and deploying software.

WinDev 12 - Powerful IDE
Develop 10 times faster ! ALM, IDE, .Net, RAD, 5GL, Database, 5GL, 64-bit, etc. Free Express version

Wanna see your ad here?