![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| SCO stock plummets on Unix verdict - Computing | iBot | UNIX and Linux RSS News | 0 | 08-13-2007 09:10 PM |
| SCO stock plummets on Unix verdict - VNUNet.com | iBot | UNIX and Linux RSS News | 0 | 08-13-2007 08:50 PM |
| What exactly is Stock Bit (t) | Optimus_P | UNIX for Dummies Questions & Answers | 3 | 08-10-2001 01:20 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Stock script problems
I'm have some trouble, I'm doing some unix stuff for fun and I can't get something to work
I have a getquote.sh script: wget "http://finance.yahoo.com/q?s=$1" -o /dev/null -O quote echo `echo $1; egrep "Last Trade:" quote | cut -d ">" -f 3 | cut -d "<" -f 1` to get the current trading price and I have a portfolio file with the ABBR, price and shares like: GOOG 300.00 100 I want to get just the first word so I can send the abbr to the getquote.sh script so I did: gawk '{ print $1 }' portfolio | ./getquote.sh which should output something but it prints nothing. If I just do the gawk part it will output all the of abbrs in the first column of the file correctly, and the ./getquote.sh GOOG by itself will return the correct output but I can't seem to get them to link up right. Ideas? |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|