Rc: Difference between revisions

Content added Content deleted
(Silly me...Should have caught that in preview.)
m (→‎Examples: lang tag / nowiki strip)
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])


<lang rc>#!/bin/rc
<pre>
#!/bin/rc
rfork e
rfork e
DEFAULT=ewr
DEFAULT=ewr
Line 44: Line 43:
' |
' |
sed 's/ *$//' |
sed 's/ *$//' |
uniq
uniq</lang>
</nowiki>