Trying to extract domain and tld from list of urls.
I have done a fair amount of searching the threads, but I have not been able to cobble together a solution to my challenge. What I am trying to do is to line edit a file that will leave behind only the domain and tld of a long list of urls. The list looks something like this:
and I would like to end up with:
I prefer bash, but am learning ruby and perl....though not very good at them yet. I have used ruby's URI function to extract the input links above...is there another ruby function I am overlooking for domain.tld?
Now this is a bit tricky, but works great if you can decide which Top Level Domains or TLDs you want to receive mail We are getting so much spam from countries we never receive useful mail, I've been experimenting with blocking entire TLDs using sendmail access_db as an antispam technique.
... (0 Replies)
I'm going to have a text file formatted something like this:
some_name http://www.someurl.com/
another_name http://www.anotherurl.com/
third_name http://www.thirdurl.com/
I need to write a script that can rsync from a file path I'll set, to each URL in the list.
Any ideas? (8 Replies)
I have a list of urls for example:
Google
Google Base
Yahoo!
Yahoo!
Yahoo! Video - It's On
Google
The problem is that Google and Google are duplicates as are Yahoo! and Yahoo!.
I'm needing to find these conical www duplicates and append the text "DUP#" in from of both Google and... (3 Replies)
Dear Expert,
i have linux box that is running in the windows domain, BUT did not being a member of the domain. as I am not the System Administrator so I have no control on the server in the network, such as modify dns entry , add the linux box in AD and domain record and so on that relevant.
... (2 Replies)
Hello,
i try to extract urls from google-search-results, but i have problem with sed filtering of html-code.
what i wont is just list of urls thay apears between ........<p><a href=" and next following " in html code.
here is my code, i use wget and pipelines to filtering. wget works, but... (13 Replies)
Hi,
I need to basically get a list of all the tarballs located at uri
I am currently doing a wget on urito get the index.html page
Now this index page contains the list of uris that I want to use in my bash script.
can someone please guide me ,.
I am new to Linux and shell scripting.
... (5 Replies)
Way back in the early dawn of the 'net, there were two competing notations for specifying a FQDN, the familiar name.subdomain.domain.tld (such as news.bbc.co.uk) and the reversed tld.domain.subdomain.name (uk.co.bbc.news). And if memory serves, only the UK used the latter style of FQDN for a period... (0 Replies)
Hi
Need to list all gid for particular domain user.
Actually in database getting error like one of the gid that user belongs is invalid.
please suggest.
thanks
Paul (1 Reply)
How to list physical CPU on primary domain? Sparc SPARC T5-4
psrinfo -p
1
in ILOM I see
Processors:
4 / 4 (2 Replies)
Discussion started by: thomasj
2 Replies
LEARN ABOUT SUSE
tld_strerror
tld_strerror(3) libidn tld_strerror(3)NAME
tld_strerror - return string describing tld error code
SYNOPSIS
#include <tld.h>
const char * tld_strerror(Tld_rc rc);
ARGUMENTS
Tld_rc rc tld return code
DESCRIPTION
Convert a return code integer to a text string. This string can be used to output a diagnostic message to the user.
TLD_SUCCESS
Successful operation. This value is guaranteed to always be zero, the remaining ones are only guaranteed to hold non-zero values, for log-
ical comparison purposes.
TLD_INVALID
Invalid character found.
TLD_NODATA
No input data was provided.
TLD_MALLOC_ERROR
Error during memory allocation.
TLD_ICONV_ERROR
Error during iconv string conversion.
TLD_NO_TLD
No top-level domain found in domain string.
RETURN VALUE
Returns a pointer to a statically allocated string containing a description of the error with the return code rc.
REPORTING BUGS
Report bugs to <bug-libidn@gnu.org>. GNU Libidn home page: http://www.gnu.org/software/libidn/ General help using GNU software:
http://www.gnu.org/gethelp/
COPYRIGHT
Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Simon Josefsson.
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.
SEE ALSO
The full documentation for libidn is maintained as a Texinfo manual. If the info and libidn programs are properly installed at your site,
the command
info libidn
should give you access to the complete manual.
libidn 1.15 tld_strerror(3)