I have the column as
2.14%
1.42%
0.64%
0.50%
0.44%
0.38%
0.38%
0.36%
0.35%
0.35%
0.32%
0.32%
0.31%
0.30%
0.30%
I want to find out if any of these values is greater than 75%, is yes then print that value.
Please help me in finding out this.
Try:
awk -F% '$0 > 75' <filename
$ gawk 'strtonum($0)>75' file
2.14%
1.42%
---------- Post updated at 02:15 AM ---------- Previous update was at 02:09 AM ----------
bash
while read -r num
do
case "${num%\%}" in
7[5-9].[0-9][0-9]|[89][0-9].[0-9][0-9]|100) echo $num;;
esac
done < "file"