I have a list of books inside a directory which I'm reading from and I want to list all words from the books that end with the lower and uppercase of a specific letter.
There's probably a way of doing it using cut or tr but I just can't think about it. Is there a way to use globs inside the pipe for it?
I'm not allowed to use grep, sed, awk, or perl.
Edit: The closest I got was:
cat * | tr '[:punct:]' ' '| tr ' ' '\n' | tr -s '\n'| tr '[:upper:]' '[:lower:]' | rev | sort
With this I can have the list of all words, one in each line. We don't really need to get rid of duplicates. Now I would just need to filter the words that have q in the beginning.