You probably meant to write like this:
while read i; do
echo "http://uk.finance.yahoo.com/echarts?s=$i#symbol=$i\;range=my\;compare=\;indicator=volume\;charttype\=area\;crosshair\=on\;ohlcvalues\=0\;logscale\=off\;source\=undefined\;"
done < awk_1 | tee stock_urls
That is:
- In the
echo
command, use"..."
to quote your text instead of$(...)
which is something else - Use the pipe operator
|
to pass the output totee
, and you can pipe the entire loop this way, no need to do for individualecho
lines.