I'm trying to do some fancy footwork with HEX numbers. Basically, I want to take a HEX number, convert to decimal, add some number (integer) to it, and convert it back to HEX.
% set hex 0xFFFFFFFFFFFF
0xFFFFFFFFFFFF
% set hexInDec [expr $hex]
281474976710655
% set decBackToHex [format %x...
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:
find . -type f -exec grep -ni my_search_text /dev/null {} \;
However, from Tcl, if we try to run:
exec find . -type f -exec grep -ni $tag...
Having trouble getting exec to work with a dynamic set of arguments for the binary it's execing.
Example:
exec tar -cvf /tmp/MYFILE.tar /dir/to/tar
This works, and the tar file is created.
However, what if the 'arguments' passed into tar might change based on version?
# If tar is newer...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.