I have directory ~/temp
with log files. This directory contains another directory ~/temp/aaa
that also contains several logs. I would like to open all log files at once. I do
vim -p *
It opens files in current directory and that is fine, but it also opens directory aaa
with list of files in content ant I would like to omit it.
Also no files are opened in aaa
directory. I could add /aaa/*
into command, but his is not good since directory name might change and I would like to have more universal command.
How to enumerate all files in directory and sub directory for vim
?