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 Mike Lewis 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. eugene42

    replace or substitute....

    Thanks Miller, for the update. I kinda just noticed this. The match variable still contains the filename 'finally_here.docx'. Is there any quick way to filter that out right away in the regex, or should I go ahead and store the filename in a variable using File::Basename, and then replacing it...
  2. eugene42

    replace or substitute....

    Thanks Feherke!! that worked like a gem!! Also, thanks for your hint on the tcl forum for the abstract tcl problem I had.
  3. eugene42

    replace or substitute....

    Hi, I'm trying to replace the following pattern with a blank field, but haven't been able to do so $match ='C:\data\random\unnecessary'; $sentence = 'C:\data\random\unnecessary\necessary_part\this too\finally_here.docx'; $match =~ s!$sentence!!g; print $match; So, I'm looking for a result...
  4. eugene42

    Identifying an open unbalanced brace in a string

    Thanks Bob, That did help a lot...
  5. eugene42

    Identifying an open unbalanced brace in a string

    Hi, I need to execute a script which parses through the data line, by line. While going through the data, I come across lines which contain unbalanced braces within the data. I was able to assign it to a list, however, while performing something like set x [lindex $line 0] ,an error is...
  6. eugene42

    inserting a line in between a file and not in the end

    Hi, I am looking to insert a couple of lines in the output. The problem is that when I try "puts $fh..." the lines are inserted only at the end of the output file and not immediately, where the last line was read... I've attached a sample script to make more sense of my problem..... The output...

Part and Inventory Search

Back
Top