would like to write a bash program which if I type in the following:
-bash-4.1$ ./sample.sh path regex keyword
that will result something like that:
path/sample.txt:12 path/sample.txt:34 path/dir/sample1.txt:56 path/dir/sample2.txt:78
I have absolutely no idea how can I achieve this without using find or grep -r (but I can use grep/ sed/ awk) in bash... Please help...
Thank you very much!!