Completato

Create a linux script (perl, awk, sed etc) that searches multiple files for a matching start and end string

I need a script writing that searches through all the files in a directory (including subfolders), looking for a certain string, for example "/*70ff608051e68d9ee3280c699f82f8b1*/".

When a matching file is found, the file will likely contain this string twice, acting as a START and an END tag, with text inside.

The matching file should be cleansed of the START, INSIDE TEXT and END tags.

Typically these will all be JS and PHP files.

I have attached a ZIP of a reference file that would match the above string. Warning, this file is infected with malware - hence our reason for wanting to search through directories to try and clean them all.

All the other code in the files should remain present, so just everything in between and including the start and end tags should be removed.

Any script that can be run via linux command line easily will suffice. We need to pass in the start and end string each time though, as this may be different each time.

Thanks.

Competenze: Linux, Perl

Vedere di più: writing a script, text string search, string matching in c, linux, shell script, string match, search text string, perl script to zip files, match string, matching string, a reason for writing, simple sms script linux perl, vbs search string multiple files move, input popup calendar start date end date disable java script, search string multiple pdf files, perl script copy matching files, calendar script start end date, script linux perl delete files, related searches script, multiple upload script php ajax

Sul datore di lavoro:
( 47 valutazioni ) Manchester, United Kingdom

ID Progetto: #8712496

Assegnato a:

vili1977

Hello. I had job in hosting comopany before. We used this script for clean server from malware. I checked and it is working 100%. find . -type f -name "*.js" | xargs grep -l '70ff608051e68d9ee3280'| xargs perl Più

$30 USD in 1 giorno
(405 valutazioni)
6.7

23 freelance hanno fatto un'offerta media di $63 per questo lavoro

gangabass

I'm one of the best Perl developers here and I can complete your task in less than a hour. All I need to start is milestone payment from you. You'll release it after you check everything on your side. Thanks. Ro Più

$30 USD in 0 giorni
(235 Recensioni)
6.5
mrfixersl

Hi there.. :) Well I believe your files have been infected with some malicious codes right? I have done exactly the same for a site of my own and for many other clients.. I would love to write a shell script for Più

$40 USD in 1 giorno
(99 Recensioni)
6.1
skynatstech

Hello, How are you? Hope you are doing well. I have read your project description and the issue may be and understood. sample would be as follows #! /bin/bash string=$1 path="/tmp/test" You have to pa Più

$45 USD in 3 giorni
(137 Recensioni)
5.8
srinichal

I am an expert in perl and can deliver the project to your specifications and requirements .

$147 USD in 3 giorni
(38 Recensioni)
5.8
YuriGoncharov

Hello. I'm the best in shell scripting there and did a lot of shell script in my life. So I read all your requirements, discover your attachment and can create shell script for you: 1) Working well on any unix plat Più

$80 USD in 0 giorni
(35 Recensioni)
5.6
jbosseu

I have worked as sys admin for big names like [login to view URL] and servercentre.net. Over 8yrs of experience working with cpanel, plesk and directadmin servers. Can have script ready for you quick. Let me know.

$55 USD in 3 giorni
(40 Recensioni)
5.0
talhamq

A proposal has not yet been provided

$88 USD in 3 giorni
(50 Recensioni)
5.0
johnfidel98

Hello there, i can write a shell script that does the same... i have good linux skills and im ready to work with you

$35 USD in 1 giorno
(29 Recensioni)
4.9
xtremelyalex

Hi mate how are you? I did this few weeks ago for a client to delete the malware parts of php files for him so i can do this easily for you and you can run it against your intended files to clean them all of malwares. Più

$40 USD in 1 giorno
(20 Recensioni)
4.5
sylar1015

hello, sir: c/c++/python expert worked for samsung & huawei a sample can be provided before hired. i checked you js file , and have done python sample on linux , it works hope to get message from u ty

$80 USD in 1 giorno
(13 Recensioni)
4.4
ngoaipho

A proposal has not yet been provided

$35 USD in 3 giorni
(22 Recensioni)
4.2
osfreelanceruk

A proposal has not yet been provided

$55 USD in 0 giorni
(7 Recensioni)
4.1
chsztsl

A proposal has not yet been provided

$50 USD in 1 giorno
(13 Recensioni)
3.7
Walrusyn

Hi there, I'm a Linux sysadmin with 14 years of experience managing Linux servers and would love to help you with this project. I think this task can be done in bash (using find, egrep, awk and sed). I've done si Più

$30 USD in 1 giorno
(15 Recensioni)
3.6
Shich

Daar is nog geen aanbod gemaak nie

$98 USD in 7 giorni
(4 Recensioni)
2.9
nearffxx

I fully understand your requirements, I'm pretty confident that I will meet your expectation. I will assist you until the work is done.

$45 USD in 3 giorni
(6 Recensioni)
2.6
robertlanyi

Még nem kapott javaslatot

$120 USD in 2 giorni
(1 Recensione)
1.5
Marcin1700

Nie złożono jeszcze oferty.

$30 USD in 1 giorno
(0 Recensioni)
0.0
noama2k

Hi, my name is Noa. I'm bioinformatics student. I'm new in this site but I have appropriate knowledge and exprience. I can do this task in perl.

$35 USD in 1 giorno
(0 Recensioni)
0.0
dc4tcpip

will provide what you said using perl within 1 day. you can run it via command line.. simple script to do so.

$222 USD in 1 giorno
(0 Recensioni)
0.0