Find Jobs
Hire Freelancers

Script to find domains in input text

$10-15 USD

Completed
Posted over 12 years ago

$10-15 USD

Paid on delivery
I have many text files, the text files do not follow a standard format. 1. I need to find all domain names in the text files and print them to stdout. 2. The script should accept multiple file as an input and run as "./find_domains *" 3. The script should list each found domain on a separate line. Here is an example input line found in one of our text files (please ignore this is CSV, many files are not) "","Cheshire","28-02-2011","Sale Grammar School","4029","","Closed","Mixed","D A","","Wilson","Headteacher","Mr","07-01-2011","Trafford","358","","M33 3NH","","","999","Academy Converter","Not applicable","18","11","Marsland Road","9733217","0161","Sale","Foundation School","10005644","106371","[login to view URL]","Has a sixth form",""Not in special measures","Not part of PFI","No Special Classes","","Not applicable","","0","Not applicable","","Not applicable","Not applicable","Not applicable","","","","1","[login to view URL]","[login to view URL]:List_of_schools_in_Trafford","[login to view URL]","","","","[login to view URL]:List_of_schools_in_Trafford","[login to view URL]","" The output from this line would be (urls should not be printed, just domains): [login to view URL] [login to view URL] [login to view URL] 4. It is not expected that the last char in the domain name would be followed by a char 0-9 or a-z, so identifying the end of each domain name should be fairly simple. You can use this in a regexp or another method. 5. We need to find all .uk domain, .com domains, .net domain, .org domains 6. Script must be delivered in 2 days. 7. Programming should be Perl or Python. 8. Script must run on Linux command line.
Project ID: 3594000

About the project

3 proposals
Remote project
Active 13 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
See private message.
$10 USD in 2 days
5.0 (38 reviews)
4.5
4.5
3 freelancers are bidding on average $11 USD for this job
User Avatar
See private message.
$12 USD in 2 days
4.9 (82 reviews)
5.6
5.6
User Avatar
See private message.
$10 USD in 2 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED KINGDOM
York, United Kingdom
5.0
48
Member since Jun 6, 2004

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.