How about:
i=0
for f in *.txt; do
let i++;
awk '$1=="something" && ($5 >= 60 && $5 <=70)' "$f" > file_treated"${i}".txt
done
I simplified your awk
command and straightened out your various quoting issues. I also removed the $b.txt
since you were simply recreating $f
. I left the echo $b
etc in case you actually wanted that but it could just as easily be replaced with echo "$f"
.