IBM's DeveloperWorks has published a tutorial on Unix pipelines, redirections, operators, and other "strange characters" inhabiting Unix's command line netherworld. "Speaking UNIX: !$#@*%" aims to teach intermediate Unix and Linux users a better understanding of the symbols used by system administrators in both interactive and non-interactive shell programming.
The tutorial is designed for users who have "learned a few of the basic commands to help maneuver through a directory structure, create and modify files, see what processes are running, and maybe even administer users and the system," says Cormany, who is National Data Center Manager at Scientific Games Corp. The tutorial uses the ksh (Korn shell), but most of it also applies to bash, the default Linux shell.
Cormany starts off by explaining the pipeline, or pipe, which "is an integral part of everyday processing," he writes. Most often, pipelines are used to enable developers to redirect the standard output (stdout) of one command to become the standard input (stdin) of the subsequent command, he explains.
Next, Cormany covers single and double less-than and greater-than signs, which can be used to put data into and out of files. Other topics and coding examples address: Subshells -- for executing several commands together
Test command -- used for evaluating expressions or values
Test operators -- for error and status checking
Logical operators -- for definitive conditional evaluations of expressions or their values (good for streamlining code)
Comparison test operators -- more error and status checking, but used primarily with strings and numeric values
Substitution operators -- for defining variables or assigning valuesAvailability
The full IBM DeveloperWorks tutorial, "Speaking UNIX: !$#@*%," should be available here.
This entry was posted
on 2:34 AM
.
Archives
-
▼
2008
(457)
-
▼
October
(62)
- Dell netbook uses MID-sized Atom
- Networking platforms run Pentium M SoCs
- Virtual system mimics superscalar SoC
- FPGA dev kit supports dual PowerPCs
- Via demos Nano processor, Pico-ITXe
- Torvalds: Real quality means taking it personally
- Tiny $75 SBC gains baseboard
- Linux wins big in ATCA "Best of Show" honors
- IPTV set-top runs Linux
- Microkernel boasts more "robust" SDK
- Mini-ITX board sports six SATA II ports
- "Access Day" highlights Linux wins, products
- ARM tipped for netbooks
- Source free'd as first Android phone ships
- Motorola Android phone due Q2
- Linux takes to high seas, chicken coop
- Atom COM can stand alone
- Linux powers "cloud" gaming console
- Linux powers thin MID
- Eclipse rev's mobile Java IDE
- COM Express module runs Linux
- GUI toolkit goes for trifecta
- Modular DB stores media metadata
- NEP Alliance redefines "scope"
- 2.6.27 adds dual-core Feroceon support
- Linux powers in-flight entertainment centers
- Triple-core DSP runs Linux
- SoHo NAS devices run EMC Linux
- First Atom-based nano-ITX board?
- Australian Linux conf includes mobile
- Adobe reiterates OSP commitment
- ETX module adopts Atom
- Webinars tackle VxWorks-to-Linux ports
- Qt announces Linux design win in IP phones
- POS stack targets Linux netbooks
- Euro Linux device conference announces speakers
- New kernel boosts embedded
- Mobile WiMAX service launches in U.S.
- Understanding Unix spells and curses
- First ALP Linux smartphone?
- Tools vendor touts low-cost Linux BSPs
- First dual-monitor LTSP 5 set-up?
- Miguel de Icaza on Mono 2.0
- Italian carrier ships Linux MID
- Linux netbook return rates higher?
- Open-source server appliance is "free"
- ETX module targets military apps
- "Virtual platform" targets Linux device developers
- Mobile mesh networking software to debut on Linux
- ARM9 SoC targets Linux control applications
- MontaVista Linux drives Dell's quick-boot feature
- Linux-based GPON SoCs deliver fiber-to-the-home
- Mobile Linux platform supports Cortex-A8 SoC
- Freescale to jettison cellular chip business
- MontaVista "Summit" concludes
- Trolltech and Qtopia rev'd and renamed
- Linux Foundation spins end-user conference
- GNOME Mobile hits the road
- Linux virtualization tech tapped for telematics
- Virtualization design targets wireless base stations
- Security appliance uses Intel SoC
- ARM11 CPU module gains Linux tools
-
▼
October
(62)