![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Extracting specific text from a file | rahulkav | Shell Programming and Scripting | 8 | 10-22-2008 11:34 AM |
| Extracting a line in a text file | terryporter51 | Shell Programming and Scripting | 5 | 10-13-2008 07:34 PM |
| extracting a set of strings from a text file | Deanne | Shell Programming and Scripting | 2 | 09-21-2007 12:31 AM |
| Extracting data from text file based on configuration set in config file | suparnbector | Shell Programming and Scripting | 3 | 08-10-2007 03:25 AM |
| using unregistered domain names | norsk hedensk | IP Networking | 2 | 08-02-2002 11:49 AM |
|
|
LinkBack | Thread Tools | Search this Thread |
Rating:
|
Display Modes |
|
||||
|
I am needing to extract and list domain names out of a very large text file. The text file contains tlds .com .net .org and others as well as third level domains e.g. host1.domain.com and the names are placed within paragraphs of text.
Domains do not have a http:// prefix so I'm thinking the only thing to match on would be the tlds for example match ".com", extract everything before it up to "space" character. How would I go about doing this? grep, sed and awk? Thank you gurus! ![]() Last edited by totus; 10-26-2008 at 02:45 PM.. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|