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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by preethib

  1. preethib

    export flatfile to Mysql db

    Mike, My file has data fields that needs to be inserted in different tables. For eg. If I see "record", than assuming field1 exist, I need to inset the value of field1 to TableA and than assuming field1 exist, I need to inset the value of field2 to TableB etc... In this case I guess...
  2. preethib

    export flatfile to Mysql db

    I need help to export data from a flatfile to Mysql DB. My Flatfile has about 5000 records, and one record can have any number of lines in the text file. record1 field1: <value> field2:<value> field3:<value> <value of field4> <value of field5> <value of field6> field7:<value> record2 field1...
  3. preethib

    pattern match problem

    jaa, Yes! That's great. Thanks for your help, :))
  4. preethib

    pattern match problem

    jaa, Is their a email address I can reach, so I can send input file and the program. I don't want to cause a problem with the policy in letting out information. thanks,
  5. preethib

    pattern match problem

    I am sorry I sent the wrong output file, here is actual output: &quot; line NOT OK: B: &quot;image file line NOT OK: B: &quot;rank Image Search&quot; line NOT OK: B: &quot;rank image search&quot; line NOT OK: B: rank search software&quot; line NOT OK: B: &quot;Search Software&quot...
  6. preethib

    pattern match problem

    jaa, I tried it with 'or' and '||', I get the same result. Here is my code: &quot; .. if ($line =~ m/^B/) { if ( ($line =~ m/:\s+&quot;.*?&quot;$/) || ($line =~ m/:\s+[^&quot;]+$/) ) { $myrank = $line; print &quot;lines OK : $myrank \n&quot;; } else { print &quot;lines NOT OK : $line...
  7. preethib

    pattern match problem

    Hi jaa, &quot;if ( /:\s+&quot;.*?&quot;$/ )&quot; will print &quot;lines NOT OK&quot; for lines that have matched and unmatched quoted lines while, &quot;if ( /:\s+[^&quot;]+$/)&quot; will print &quot;lines OK&quot; for the lines without quotes , which is good. resending..
  8. preethib

    pattern match problem

    Hi jaa, &quot;if ( /:\s+&quot;.*?&quot;$/ )&quot; returns even the lines that have unmatched quoted lines while, &quot;if ( /:\s+[^&quot;]+$/)&quot; will print lines without quotes. ;<
  9. preethib

    pattern match problem

    Hi, I have a text file, which (A#,B#) pairs, that looks like&quot; &quot; A1: http://www.abc.com B1: &quot;rank&quot; A2: http://www.abc.com B2: &quot;rank term&quot; A3: http://www.abc.com B3: &quot;rank term A4: http://www.abc.com B4: rank all A5: http://www.abc.com B5: rank all true...
  10. preethib

    Hi, I have a perl script that I

    Any suggestions as to how I can support Users's to try this script online. I appreciate if someone could suggest a good resource for combining perl with HTML. Thanks for the reply.
  11. preethib

    Hi, I have a perl script that I

    Hi, I have a perl script that I want other to be able to execute by clicking on the link from the WEB UI. My idea/method on this. Have a HREF link on a intranet web site. When the user clicks on the link, I want to open a dos(on NT)/UNIX terminal pop-up window, login with my account...
  12. preethib

    append lines from a text file

    Thanks a lot, preethi
  13. preethib

    append lines from a text file

    Hi, Is there a single system/awk/sed command, if I want to append a file to a list of exzisting configuration files. I have 10 lines in a 1 text file, that I want to append to the contents of 10 existing files. Any help would be great. Thanks,
  14. preethib

    foreach problem

    Thanks that was cool. ;)p
  15. preethib

    foreach problem

    Hi, I have a problem stripping lines of an xml file. I have a xml file, were I want to strip of individual tags from the file. My input xml file has lines: <feedid>2</feedid> <pagetype> <action>add</action> <attribute>freehosting</attribute> <id>48611</id>...

Part and Inventory Search

Back
Top