Plan 9 from Bell Labs’s /usr/web/sources/patch/applied/stock-fix-download/stock.backup

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!/bin/rc

stock=LU

if(! ~ $#* 0) stock=`{echo $*|tr a-z A-Z|sed 's/ /+/g'}

hget 'http://quote.yahoo.com/d/quotes.csv?s='^$stock^'&f=snl1d1c1v&e=.exe' |
	sed 's/ +"/"/;s/
//' |
	switch(`{date}){
	case *'Apr 1 '*
		sed 's/("LU","LUCENT TECH INC"),([^,]*),(.*)$/\1,2.35,\3/'
	case *
		cat
	}

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.