終了

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.

スキル: Linux, シェルスクリプト, UNIX, システム管理, スクリプトインストール

さらに表示: 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

採用者について:
( 60件のレビュー ) Frankfurt Area, Germany

プロジェクトID: #21179814

16人のフリーランサーが、このジョブに平均$12で入札しています

$10 USD 1日以内
(30件のレビュー)
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

$10 USD 1日以内
(4件のレビュー)
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 もっと

$10 USD 7日以内
(0件のレビュー)
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 もっと

$30 USD 7日以内
(0件のレビュー)
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 7日以内
(0件のレビュー)
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 もっと

$10 USD 7日以内
(0件のレビュー)
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.

$10 USD 1日以内
(0件のレビュー)
0.0
$13 USD 3日以内
(0件のレビュー)
0.0
lalitbairwal22

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

$13 USD 4日以内
(0件のレビュー)
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 もっと

$10 USD 1日以内
(0件のレビュー)
0.0
utbansal

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

$15 USD 10日以内
(0件のレビュー)
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.

$10 USD 1日以内
(0件のレビュー)
0.0
$15 USD 5日以内
(0件のレビュー)
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 2日以内
(0件のレビュー)
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

$10 USD 1日以内
(0件のレビュー)
0.0
ponsol

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

$10 USD 1日以内
(0件のレビュー)
0.0