I'm looking through a couple hundred files looking for the following string:
$v1=Name($v2[x1].$v3[x2].$v4[x3].$*v5[x4].)
grep -HREln "(x1)" . > foo
find . -type f | xargs grep -l 'x1' > foo
However the variable x1 changes from file to file. What I would like to do is search for the pattern:
$*=Name($*[*].$*[*].$*[*].$**[*].)
regardless of the variable or white spaces. any assistance would be great.