Some guidance for your 401K funds.

http://finance.google.com to grab the last day, month, 3 month, and ytd data and then put it into a CSV, so I can sort it and decide which funds to pick from. Here’s how:
1) Create a file with all of the funds in it. Mine from Sun looks like this (I call mine sunw.txt):
WATFX
VBAIX
VIIIX
FCNTX
GSTIX
SSHFX
LLPFX
HWMIX
NBGIX
TMGFX
USRLX
FDIVX
DRGTX
VTINX
VTOVX
VTENX
VTXVX
VTWNX
VTTVX
VTHRX
VTTHX
VFORX
VTIVX
VFIFX Here’s the script:
#!/bin/bash
rm -rf output.txt
mkdir tmp
cd tmp
rm -rf *
echo symb,day,month,threemonth,ytd > ../output.txt
for i in `cat ../sunw.txt`;
do
echo $i
wget -c -N “http://finance.google.com/finance?q=$i”
day=`grep -3 “1

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.