0
I want to add recursively add folders to an exported variable. Suppose I have the MATLABPATH
variable declared below:
export MATLABPATH=PATH1:PATH2:…PATHN:$MATLABPATH
And I want to add all folders inside the folder RECURSIVEFOLDER
to MATLABPATH
variable. How I do that in some automatic way?
Thanks.
You may add -mindepth 1 to find command to not add the RECURSIVEFOLDER x). Thanks x) – Werner – 2013-08-04T15:07:24.873