list directory xargs linux

C++
find ./ -mindepth 1 -maxdepth 3 -type d -name logs -ls

Source

Also in C++: