|
|
|
|
google site
|
|||||||
| Forums | Register | Blog | Man Pages | Forum Rules | Links | Albums | FAQ | Users | 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. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|||
|
Need to strip few letters
Hey guys..
Can experts help me in achieving my purpose.. I have a file which contains email address of some 100 to 1000 domains, I need only the domain names.. Eg: abc@yahoo.com hd@gamil.com ed@hotmail.com The output should contain only Yahoo.com gmail.com hotmail.com Thanks in Advance... |
| Sponsored Links |
|
|
|
|||
|
I always use the cat, although it's unnecessary. It adds uniformity. Some people feel the need to use as few characters as possible, or to spare the processor the extra load. But others (me included) see the cat as a convenient way to add clarity. To each his own.
I also get yelled at by my friends for usually using "sort | uniq" instead of "sort -u." Because I so often use "sort | uniq -cd" or pipe to "wc -l," it's a lot easier to always type it the same way. Also it adds clarity. The power in all the tiny tools on a *nix box is that they can be strung together to do amazingly complex tasks. It is not (and should not be) the goal of any one program to overreach and try to do too much. However, you're correct about the cat and my friends are correct about the sort -u. I just prefer to do it my way. Stubborn, I guess. At least I finally started using CTRL+R instead of piping the history command through a grep. Usually... ShawnMilo |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| sed error - using reserved letters | karthikn7974 | Shell Programming and Scripting | 6 | 05-07-2008 04:25 AM |
| awk - delete last two letters | sap4ever | Shell Programming and Scripting | 1 | 12-05-2007 09:13 AM |
| trim letters | fed.linuxgossip | Shell Programming and Scripting | 10 | 05-15-2007 11:11 PM |
| transposing letters | myscsa2004 | Shell Programming and Scripting | 4 | 05-12-2004 11:11 AM |
| capital letters GONE! | blogg | UNIX for Dummies Questions & Answers | 8 | 12-11-2002 09:44 PM |