[PLUG] edit lines in a text file
Fedor Pikus
fpikus at gmail.com
Tue Mar 29 19:49:25 UTC 2005
On Tue, 29 Mar 2005 11:36:33 -0800, Maodhog <techmage at aracnet.com> wrote:
> Hi,
> I know I've done this before, but I can't remember how.
>
> I want to take a text file, made up of email addresses and chop the
> users name off the domain name so I can uniq -u the domains.
sed -i 's/.*@//'
or sed -e if you want to send the result to a pipe instead of editing in place.
>
> I can't remember what the command is to remove all before the character
> "X"(which in this case is the @ sign).
>
> someone want to assist my aging brain? :)
>
> Harry
>
> --
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.308 / Virus Database: 266.8.4 - Release Date: 3/27/2005
>
> _______________________________________________
> PLUG mailing list
> PLUG at lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>
--
Fedor G Pikus (fpikus at gmail.com)
http://www.pikus.net
http://wild-light.com
More information about the PLUG
mailing list