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

    How to add and delete an occurrence of characters in a file?

    Hi Kevin, My data is a text file (sites.txt) containing a list of sites as I said in my previous post. I got a complicated script from a colleague to extract the data. After running his script, the result obtained is the file sites.txt and on each line of the file the http:// is missing and the...
  2. jspwoohoo

    How to add and delete an occurrence of characters in a file?

    It works. Thanks a lot KevinADC. Alice
  3. jspwoohoo

    How to add and delete an occurrence of characters in a file?

    Hi, I'm working on Linux too. This is how I tested: [j2ee-user@localhost ~] perl -pe 's,(\S+).*,http://$1,' sites.txt This I what I got: www.google.comhttp://80 kce.fgov.behttp://80 Alice
  4. jspwoohoo

    How to add and delete an occurrence of characters in a file?

    Hi Fekerke, Thank you for your answer. Your script only adds the string http:// between link and the number 80. What I want is to add http:// at the beginning of the link and to delete 80 at the end. To be honest, I didn't know how to do it at all. I've gained a very basic level in Perl. I...
  5. jspwoohoo

    How to add and delete an occurrence of characters in a file?

    Hello, I'm new to perl and would like to get your help. I have a file including a list of links with 80 at the end of each link: www.google.com 80 kce.fgov.be 80 I want to: 1. add http:// at the beginning of each line 2. delete 80 at the end of each line. The result obtained should be...
  6. jspwoohoo

    retrieve row data from a table

    Hello, I'm new to JSP and I'm doing a project on it. I am trying to adapt the MVC model as much as possible. So, my Controller talks to the Model which accesses a SQL database to retrieve the required information.Then the Controller dispatches data to the View (the JSP page). I could do these...

Part and Inventory Search

Back
Top