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 gkittelson 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: *

  1. bobertperry

    removeing lines that start with # out of a string

    Sweet! Thanks for the help :) heres exactly what I did. #read in the whole file as a list of lines set linelist [split [read $inpid] \n] #now operate on each line foreach line $linelist { if {[string first $comment $line] == -1} { scan $line %s%s%s%s this_name this_ip...
  2. bobertperry

    removeing lines that start with # out of a string

    Hello, I am reading in a file into a string and then using that to set all sorts of vars. I am trying to add a way to be able to comment lines out with string start, string end, and string replace but I am getting all sorts or weird results. Would anyone please post an example? Here is the...

Part and Inventory Search

Back
Top