I need to generate a configuration file for our Pro/Engineer CAD system. I need a recursive list of the folders from a particular drive on our server. However I need to EXCL
may be in your case you could reach this with the following:
mv excluded_dir ..\ ls -R mv ..\excluded_dir .