Write a GREP command that would list lines from the "text.txt" file that have character 3, 5, or 7 as a second character and do not end with the comma character.

grep -E '^.[357][^,]*$' text.txt