Thank you for your help!
I have this code in bash:
for d in this_folder/* do plugin=$(basename $d) echo $plugin'?' read $plugin done
It works like a charm. For each folder inside the "this_folder" echo as a question and store the input to a variable with the same name.
But now I would like to exclude some folders, so, for example, it will query each folder in this directory ONLY if they are NOT one of the following folders: global, plugins and css.
Any ideas how I can achieve this?
Thanks!
UPDATE:
Here's what the latest code looks like:
base="coordfinder|editor_and_options|global|gyro|movecamera|orientation|sa" > vt_conf.sh echo "# ========== Base" >> vt_conf.sh for d in $orig_include/@($base) do plugin=$(basename $d) echo "$plugin=y" >> vt_conf.sh done echo '' >> vt_conf.sh echo "# ========== Optional" >> vt_conf.sh for d in $orig_include/!($base) do plugin=$(basename $d) echo "$plugin=n" >> vt_conf.sh done
source share