At the moment I am manually searching for three characters which can be anything in dir1 dir2 dir3 etc
By going grep -i -r abc dir1
then
grep -i -r abc dir2
grep -i -r abc dir3
etc
Trying to automate this somewhat and thought about writing a shell script, something like search.sh
and then when I want to search for something in the above directories I can put the three letters that I'm searching for
For example: run search.sh $Mid = abc
The shell script would do something like this:
$mid = Mid;
grep -i -r $mid nab-prep1001 | grep -i -r $mid nab-prep1002 | grep -i -r $mid multi-account-bpay-report | grep -i -r $mid nab-prep1004 | grep -i -r $mid nab-prep100 | grep -i -r $mid nab-prep1006 | grep -i -r $mid nab-prep1007