I have 3 files in a directory
MYO144064T
MYO144064TA
MYO144064TX
Where the digits and 11th character will change. In my csh script, I want to extract the letters 'A' and 'X' probably using grep
The variable $study equals MYO144064
What I have managed so far is very cumbersome
ls | grep $study | cut -c 11 | sed 's/\///'
Which gives me
A
X
How can I do this with minimal processes and without the additional blank line?