I am going to assume that with "after 5th comma" you mean that letter "f" should be in the 6th (comma separated) column, not in column 7 or 8. In that case I would try this:
grep -E '^([^,]*,){5}[^,]*f' file
Or should it be an exact match in column 6?
grep -E '^([^,]*,){5}f(,|$)' file
In both cases this could be done easier using awk:
awk -F, '$6~/f/' file
and
awk -F, '$6=="f"' file
respectively
-- @paresh n doshi, you cannot really use RS here because you will get into trouble if there is more than 1 line, because it would then also match the pattern in the lower columns...