Search Results

Search: Posts Made By: hxdrummerxc
32,466
Posted By hxdrummerxc
Thanks, I was using a while loop, But I was...
Thanks,

I was using a while loop, But I was told I had to use a for loop.....:(
32,466
Posted By hxdrummerxc
Thanks a lot everyone. I got that part all sorted...
Thanks a lot everyone. I got that part all sorted out now.
Everything is done, I wrote the whole shell script and it was working fine.


I have temperatures from another file to use as an input...
32,466
Posted By hxdrummerxc
That explains it...... Now I see why it rounded...
That explains it......
Now I see why it rounded it like that......

but even if I do a scale=1, I get 89.6
scale=0 obviously gives me the rounded "86"

So is there not a way to just get 89?
32,466
Posted By hxdrummerxc
Thanks a lot, Im having some trouble with bc...
Thanks a lot,

Im having some trouble with bc too.


echo $c / 5 \* 9 + 32 | bc
echo 32 / 5 \* 9 + 32 | bc
gives me 86 (instead of 89)

Im not sure how it is rounding 89.6 to 86..... its...
32,466
Posted By hxdrummerxc
Can expr deal with decimals?
Hello,
Im trying to work on a small script for a formula converting temperatures, Celsius to fahrenheit.

I have a formula, and it works.... it works every way I try it. But it keeps giving me the...
2,462
Posted By hxdrummerxc
That's it! It works flawlessly now. Thank...
That's it!

It works flawlessly now. Thank you!

We didn't even cover awk and it wasn't in the book. But, I had everything else done, and could not find any way to do that last part, so that is...
2,462
Posted By hxdrummerxc
You are a genius..... that works! I have a...
You are a genius..... that works!

I have a little bit of a header going on before my file

ex:
-------------------
Record File
-------------------
first | last | phone ...
2,462
Posted By hxdrummerxc
Ok that makes sense now. Yep that works..... ...
Ok that makes sense now. Yep that works.....
Thanks a lot!.... that was killing me

One last question, Say I have my record book formatted right now. Is it hard to make awk format/space each part...
2,462
Posted By hxdrummerxc
Thanks for the reply, :) That seems to do...
Thanks for the reply, :)

That seems to do exactly what I wan't, it's just not writing it to the file (my file named phonebook).


echo "Enter the name of the employee, to change their on-call...
2,462
Posted By hxdrummerxc
Shell script - Replace just part of a single line in a file.....
Hey guy's....

I new here,
But im working on a school project, and I am not really good at programming. In fact, this is the only programming class that I need because programming is not what I am...
Showing results 1 to 10 of 10

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