Write a GREP command that would list lines from the "text.txt" file that contain a character “a” not followed by a character “i” and end with any numeric character.

grep -E '[^i]a[0-9]$' text.txt