Using a shell script, I would like to find all directories within a directory (not recursively) that start with a specific prefix and then scroll through them. Pseudo-code example:
array directories = find('/etc/build', 'project-build-*'); foreach (string directory in directories) { // directory == 'project-build-example-x64' do_something_with('/etc/build/' + directory + '/Makefile'); }
source share