Search Results

Search: Posts Made By: harte
2,911
Posted By harte
nice guys thanks
nice guys thanks
2,911
Posted By harte
shell script | bc syntax format
sorry but need help

http://i.investopedia.com/inv/articles/site/CalculationEMA.gif

trying to achieve ema
in script I have this syntax which errors

ema=[`"$(echo (${currentprice} *...
3,636
Posted By harte
yesterdayclose and close could be equal but...
yesterdayclose and close could be equal but usually are not

9.97
9.97
./shellscript1.sh: line 17: [: : integer expression expected
./shellscript1.sh: line 19: [: : integer expression expected...
3,636
Posted By harte
Integer expression expected
Newb here

echo "$yesterdaysclose"
echo "$close"
if [ "$(echo "if (${yesterdaysclose} < ${close}) 1" | bc)" -eq 1 ] ; then
echo "stocks moving up"
elif [ "$(echo "if (${yesterdaysclose} >...
2,670
Posted By harte
Formatting wget request within script
When using a browser and calling this url .. the data returns the proper range of information

ichart dot finance dot yahoo dot com/table.csv?s=YAHOO&a=3&b=14&c=2012&d=03&e=20&f=2012&g=d&ignore.csv...
1,374
Posted By harte
script help shell session times out
while read s1 ; do
url=
suf=ignore=.csv;
wget $url$s1$suf;
sleep 5;
cat /home/joey/public_html/charts/program/fn\charts/data/tickers/header.txt > $s1.txt;
chmod 777 $s1.txt;
sed...
1,712
Posted By harte
Sorry if not clear grep -i -w $s1 6-29data ...
Sorry if not clear
grep -i -w $s1 6-29data

where s1=f

I want to find

F,20090629,5.66,5.96,5.6,5.78,73552200

not

MER-F,20090629,17.38,17.49,17.17,17.3,55600...
1,712
Posted By harte
Noob needs script help Grep
while read s1 s2; do
grep -i -w $s1 6-29data | tr "[A-Z]" "[a-z]" | sed 's/^[^,]*,//' | sed 's/200906/2009-06-/g' >> $s1.txt ;

cat header > here ;
cat $s1.txt | sort | uniq | tac >> here ;
cat...
2,924
Posted By harte
Beginner shell script help
. ./testFile.sh
url=http://ichart.finance.yahoo.com/table.csv?s= suf=&d=5&e=9&f=2009&g=d&a=1&b=4&c=1999&ignore=.csv
wget $url$s1$suf;
sleep 10;
cat header.txt > $s1.txt;
chmod 777 $s1.txt;
sed...
Showing results 1 to 9 of 9

 
All times are GMT -4. The time now is 11:32 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy