mitch
2005-03-15 19:27:46 UTC
I would like to pipe a file of numbers (one per line) to "bc" and have it run a function
like :
(( $input * 0.123 / 0.321 ) + 13 )
and spit all that back out to another file, can anyone help me with that syntax, I
want to do something like (I know this wont't work)
cat inputfilename | bc (( $input * 0.123 / 0.321 ) + 13 ) > outputfilename
thnx
regards,
Mitch
like :
(( $input * 0.123 / 0.321 ) + 13 )
and spit all that back out to another file, can anyone help me with that syntax, I
want to do something like (I know this wont't work)
cat inputfilename | bc (( $input * 0.123 / 0.321 ) + 13 ) > outputfilename
thnx
regards,
Mitch