Single command pipe

Single command to ls all the files inside a particular directory hierachy and output this to a file and open this in a vim file so that i can use gf command in vim to browse through all the files inside this hierachy.

eg :
dir1/dir2
and
dir1/dir3

dir2 and dir3 contain the files i need to browse...

Please help...if this is not as optimal solution ,please mention alternate solutions

Hi dll_fpga,

Does this work for you?

$ find . -type f | vim -

vim - means?
will the outputof find get piped to a new vim file?

Yes. That is. Test it.

hi ,
thanks for the reply...
1) even though im getting a file ,that conatain the search file paths....
(./reports/all_violations)
2)im not able to browse to files using gf or enter key...
also how make find command to search only inside a particular directory?

First point works for me, and to search without going deep into subdirectories add option -maxdepth 1

how to uniquely match each of the words seperated by / in perl

${REP_PATH}/FUNCTIONAL/wide1c_1.0V/max/qor.rpt

This question is also posted here:

Please don't double post questions.