Terminé

Script to remove lines in a text file based on a pattern match

I need to remove lines from a text file based on a pattern match.

The text file contains domain names with subdomains such as [url removed, login to view]

I need to look for the 'abcd' subdomain and if it is found remove all subdomains for that domain from the text file.

Here is an example:

file1

1. [url removed, login to view]

2. [url removed, login to view]

3. [url removed, login to view]

4. [url removed, login to view]

5. [url removed, login to view]

In the example above the 'abcd' subdomain appears at 4+5

It is for [url removed, login to view] + [url removed, login to view]

So we remove all subdomains for [url removed, login to view] + [url removed, login to view]

(deleting lines 1,4,3,5).

Please let me know if you have any questions prior to the project.

Perl or Python would be preferred programming language - please let me know prior to the project starting if you wish to use something else.

Thanks

Compétences : Perl, Python, Script Install, Script Shell

Concernant le client :
( 48 commentaires ) York, United Kingdom

Nº du projet : #3592898

Décerné à:

paulmartin84

See private message.

%selectedBids___i_sum_sub_7% %project_currencyDetails_sign_sub_8% USD en 2 jours
(8 Commentaires)
3.5

17 freelances font une offre moyenne de 9 $ pour ce travail

rotfor

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 2 jours
(40 Commentaires)
5.1
ineedWorkJob

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 2 jours
(24 Commentaires)
5.1
cbpss

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 2 jours
(12 Commentaires)
4.1
shihan033010

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 2 jours
(14 Commentaires)
3.8
dpune

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 2 jours
(11 Commentaires)
3.5
JamesShields

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 2 jours
(8 Commentaires)
3.4
crazynightwalker

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 2 jours
(9 Commentaires)
3.3
pranavhosangadi

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 2 jours
(10 Commentaires)
3.3
pandrewvw

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 2 jours
(19 Commentaires)
3.1
gutibs

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 2 jours
(8 Commentaires)
2.9
magadhmindslx

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 2 jours
(1 Évaluation)
2.3
bokorn

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 2 jours
(1 Évaluation)
2.0
daat99

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 2 jours
(4 Commentaires)
1.3
ronaldoafonso

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 2 jours
(0 Commentaires)
0.0
kmpkid

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 2 jours
(0 Commentaires)
0.0
DZdravkovic

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 2 jours
(0 Commentaires)
0.0