grep -i "^(.).*\1$" sowpods.txt > output.txt
I'm using a scrabble words list I downloaded named "sowpods.txt" and I am trying to use grep to find all of the 7 letter words in the file that start and end with the same letter .The line I have now is giving me a backreference error so I tried using online guides but they were insanely confusing. Could someone help me do this? Thanks!
I'm also on a mac and am using the default terminal.