Rc: Difference between revisions

Content added Content deleted
(Avoid embedding wiki code (even 'nowiki') in language code.)
(Silly me...Should have caught that in preview.)
Line 4: Line 4:
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])
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])


<pre></nowiki>
<pre>
#!/bin/rc
#!/bin/rc
rfork e
rfork e
Line 45: Line 45:
sed 's/ *$//' |
sed 's/ *$//' |
uniq
uniq
</nowiki></pre>
</nowiki>