Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Fermulator
  • Content: Threads
  • Order by date
  1. Fermulator

    How to handle large integers in Tcl8.4?

    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...
  2. Fermulator

    How to have Tcl run a find + grep

    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...
  3. Fermulator

    How to exec a binary and pass it args from a variable?

    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...

Part and Inventory Search

Back
Top