Hi, I have written (tried to) this small bash script for searching through a range of directories.
#!/bin/bash
shopt -s nullglob
for file in [ac]*/blarg
do
echo $file
done
This script searches through directories starting with "a" through "c" for "blarg". It only goes one level deep. How can I make it step through all directories it might encounter, and not just the root of the directories with the starting letter.
Also, is this question supposed to go here at stackoverflow or would superuser be more suitable?
Thanks