Kapalı

Very easy project: Need extracting a text from a text line using Linux sed

I need to extract the domain names from email "From" lines in emails on my mailserver using sed and regular expressions. The email "From" lines could consist of following examples:

From: user@[login to view URL]

From: Name <user@[login to view URL]>

From: "Name" <user@[login to view URL]>

From: Bla bla bla user@[login to view URL] bla bla bla

From: Bla bla bla user@[login to view URL] bla bla bla

and similar.

I only want to have the domain names (including sub-domain if there's one).

This is a sed command that I'm already using to extract email addresses:

FROM=`formail -xSender: -xFrom -xFrom: -xReply-To -xReturn-Path:| sed -e ': stripcomments s/([^()]*)//; t stripcomments; s/.*<\([^ >]\+\)>.*/\1/; t; s/^ \+//; s/ \+$//'|sed "s/\ .*//"|sort -u`

But now I only want the domains (without the "@"). You only need to modify this command to get domains as results instead of full email addresses.

Beceriler: Linux, Kabuk Betiği, UNIX, Sistem Yöneticisi, Betik Yükleme

Daha fazlasını gör: easy project works, easy project max, creating clientserver chat program using linux, easy video splitter command line, easy project onhtml php, project mysql database access using odbc, project need unique company name, project ticket reservation system using, develop project maintain book libraries using pearl net, id3 tag command line tool linux, using linux, tomake project royal hotel management using gui language, drawing line using mouse click net, using linux frame buffer operations, web project need money, need easy project, project using linux, very easy and simple online job mostly it would be copy paste task and typing but need to be done very carefully and avoid error

İşveren Hakkında:
( 60 değerlendirme ) Frankfurt Area, Germany

Proje NO: #21179814

Bu iş için 16 freelancer ortalamada $12 teklif veriyor

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(30 Değerlendirme)
4.7
sergeyborodkin

Hallo. You have to add another pipe | awk -F '' '{print $}' before sort, and voila you will get only domain names from your filter. Sure, there have to be yet symbols, and I show you them in message

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(4 Değerlendirme)
4.4
Trappist95

Dear sir, I assume you are now reading my bid, and this is my pleasure. I am a good Bash developer, i can remove that @ for you. Since i am computer science student, my rate is always cognitive improvement, then finan Daha Fazla

$10 USD in 7 gün içinde
(0 Değerlendirme)
0.0
proyo123

Dear Employer, I have reviewed your project details that seems to be great and I can help you out in completing that. I am passionate Developer with wide experience in Web Designing and Development. I will provide you Daha Fazla

$30 USD in 7 gün içinde
(0 Değerlendirme)
0.0
kzbaiaza

Hi, I am ready to change your regular season. Email me if you choose. I will do it quickly and efficiently. need feedback

$10 USD in 7 gün içinde
(0 Değerlendirme)
0.0
ingund

Hi, Having read your complete requirements, I would like to assure you that I will produce the most notable results for you, having had a myriad of previous experience with similar projects. I would like to discuss the Daha Fazla

$10 USD in 7 gün içinde
(0 Değerlendirme)
0.0
delgi92

Hello! I think a part of the work can be achieved adding a short order like: sed -e 's/.*@//'. I would like to start a chat to discuss how the last part of the work could be done.

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(0 Değerlendirme)
0.0
$13 USD in 3 gün içinde
(0 Değerlendirme)
0.0
lalitbairwal22

Will provide you data in what ever format you require in 4 days, from any Linux OS.

$13 USD in 4 gün içinde
(0 Değerlendirme)
0.0
geodark

Hello! I would be more than glad if you could trust me for the project you ask about scraping the domains from the email addresses. I am very experienced with Linux and using regular expressions and I would be more tha Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(0 Değerlendirme)
0.0
utbansal

Working in developing shell scripts from past 7 years 8 months Relevant Skills and Experience Unix Shell Scripting

$15 USD in 10 gün içinde
(0 Değerlendirme)
0.0
zamudioe

Hi I've read the project description and I think I can do the work you need. I've experience working with bash and data processing. Please, let me know if you want to know more about my work and projects.

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(0 Değerlendirme)
0.0
$15 USD in 5 gün içinde
(0 Değerlendirme)
0.0
alexborza88

Hi! I have more than 3 years of experience with Python, Linux, DevOps and also Shell. I think I am more than qualified to help you with this task. Thanks!

$10 USD in 2 gün içinde
(0 Değerlendirme)
0.0
norouzpour

I have several experience in linux and developer in php-mysql and other open source project and virtualization and network. Best Regards

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(0 Değerlendirme)
0.0
ponsol

Hi, What you need can be done in 15 minutes with a minor modification to your script. .

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(0 Değerlendirme)
0.0