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...
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
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...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.