This might be a stupid question, but i have never had to anything like this in scripting. So any help would be appreciated.
I am dealing with data from a census and have to generate reports. Each line in the file has a last name, frequency, etc etc. I have to grab the frequency. But if i grab some ones last name who has a frequency of "0.000" then i have to change it to "0.00025". I attempted to do an if statement but am not sure how to do it.
#!/bin/bash
all=/homes/ddailey/public_html/data/dist_all_last
count=`grep -w $1 $all | awk '{ print $2 }'`
if [ $count == "0.000" ]; then
echo .00025
else
echo $count
fi