Search Results

Search: Posts Made By: cdin
73,501
Posted By cdin
Thanks. I finally found the problem. I was...
Thanks. I finally found the problem. I was reading a text file and trying to add the value on line 28 to another variable. The problem was the text file was zipped in DOS and then sent to me. So,...
73,501
Posted By cdin
Thanks for the information about bc. It sounds...
Thanks for the information about bc. It sounds very promising. I tried bc from the terminal and from simple scripts. But I do get a strange error:

syntax error on line 1, teletype

Any...
73,501
Posted By cdin
Sure. Here it is. #!/bin/sh A=0 L=0 ...
Sure. Here it is.

#!/bin/sh
A=0
L=0
i=0
for L in `cat abc.txt`
do
i=`expr $i + 1`
if [ $i -eq 28 ]; then
echo "A is $A, and L is $L."
A=`expr $A + $L`
...
Showing results 1 to 3 of 3

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