1

Find files in multiple folder names

view story
linux-howto

http://unix.stackexchange.com – I am trying to list all the files from dir1, dir2, dir3 and dir4 which might be anywhere in as a sub directory of my cwd using the find command. I tried the following with no success: find . -type f -regextype posix-egrep -regex 'dir1/.+|dir2/.+|dir3/.+|dir4/.+' I tried posix-extended as well. How can I list these files? (HowTos)