Rc: Difference between revisions

5 bytes removed ,  14 years ago
m
add wikipedia link
(Avoid embedding wiki code (even 'nowiki') in language code.)
m (add wikipedia link)
 
(2 intermediate revisions by 2 users not shown)
Line 1:
{{implementation|UNIX Shell}}[[wp:Rc|'''rc''']] is a simple yet powerful shell written by Tom Duff. Originally used on AT&T's Version 10 UNIX, it is now primarily used under [http://en.wikipedia.org/wiki/Plan_9_from_Bell_Labs Plan 9], where it is the default shell. Despite rc's simplicity, it is powerful enough that many of Plan 9's basic utilities are written using it.
 
==Examples==
Here is a script to check the weather in a given city. (Retrieved from [http://plan9.bell-labs.com/sources/plan9/rc/bin/weather http://plan9.bell-labs.com/sources/plan9/rc/bin/weather])
 
<lang rc>#!/bin/rc
<pre></nowiki>
#!/bin/rc
rfork e
DEFAULT=ewr
Line 44 ⟶ 43:
' |
sed 's/ *$//' |
uniq</lang>
</nowiki></pre>
Anonymous user