(standard_in) 1: parse error setting variable with bc
I'm trying to define a variable, CHAN, by dividing another variable, FREQ, by a number. FREQ is a value from a file (called header.txt). What I think I'm doing with this bit of code is reading a number from header.txt whose location is specified by the head and tails, assigning it to FREQ and then defining CHAN with bc.
Code:
#!/bin/bash Code:
FREQ=4 Any ideas on how to fix this? Thanks |
If you use
Code:
set -xv :) |
Chris' advice is sound. I would also ask what you think the while loop is doing?
I would suggest looking back at whatever source you use for bash information to see how this construct works. |
All times are GMT -5. The time now is 09:43 AM. |