So in my Systems Programming class, we were asked a question on how to search for all file names that are seven letters long, start with 'F' and the fifth letter is 'o'. I'm confused as to how to properly do this. I assume it involves the use of find
and a combination of regular expressions. I've tried to use similar syntax to grep
, but I'm having no luck at all. If anyone could help me formulate proper syntax to list all files that follow the pattern above, it would be greatly appreciated!
The direction I was heading:
find . -name [this is what I need help with] -type file