Fermulator
Programmer
Hi there!
I'm trying to get Tcl to run a 'find this string in all of these files' type of command.
From a shell (not Tcl), the following command works:
However, from Tcl, if we try to run:
we receive a bunch of errors from grep:
Clicking on the Tcl error just yields the same text, no additional information.
Any thoughts?
I'm trying to get Tcl to run a 'find this string in all of these files' type of command.
From a shell (not Tcl), the following command works:
Code:
find . -type f -exec grep -ni my_search_text /dev/null {} \;
However, from Tcl, if we try to run:
Code:
exec find . -type f -exec grep -ni $tag /dev/null {} \;
we receive a bunch of errors from grep:
grep: can't open
grep: can't open
grep: can't open
grep: can't open
grep: can't open
grep: can't open
grep: can't open
grep: can't open
grep: can't open
grep: can't open
Clicking on the Tcl error just yields the same text, no additional information.
Any thoughts?