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:

OpenOffice.org vs. Go-OO: Cutting through the Gordian Knot

Indie Dev Suggests Peers Should Support OS X, Linux Gaming

How Does Ubuntu Linux Differ From Debian?

Turn Your Linux Desktop into an Alarm Clock

SECURITY: Wireshark

How To: Become a Linux Netbook Power User

No-Nonsense Guide to Configuring Conky

Hacker's Google - Linux and Unix Humor

Microsoft's Windows 7 Vista Replacement Plan

Preservation




System Adminsitrator
The Computer Merchant, Ltd
US-TX-Garland

Justtechjobs.com Post A Job | Post A Resume
:Speaking UNIX: Go Fish! The Friendly Interactive Shell
Speaking UNIX: Go Fish! The Friendly Interactive Shell
Dec 4, 2008, 15 :33 UTC (0 Talkback[s]) (1763 reads)

(Other stories by Martin Streicher)

[ Thanks to An Anonymous Reader for this link. ]

"English is a perplexing language. For example, consider the words moon and good. To the uninitiated, the words should rhyme, but the former is pronounced /mun/ (according to the International Pronunciation Alphabet), while the latter is spoken /good/. Seemingly, the only rule in English is exception.

"UNIX shells are equally perplexing. For instance, in the Bourne shell (and most common UNIX shells), the phrases '$var', "$var", and `$var` look alike but yield substantially different results. (Each CLI in the shell examples presented in this article are prefaced with the name of the active shell and the command number.)

"In the sequence above, the variable var is set to the two-letter string ls. In the initial echo command, the apostrophes prevent interpretation of the variable, instead yielding a verbatim copy of the quoted text, the four-letter string $var. Next, in command 4, the double quotation marks do interpret the variable, so the result is the string ls. Finally, the back quotes both interpret the variable and run the intermediate result as a subshell. Thus, `$var` yields the intermediate string ls, which runs as a shell command to produce the contents of the local directory."

Complete Story

Related Stories:
Linux.com: CLI Magic: Enhancing the Shell with fish(Nov 14, 2006)



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