Find Jobs
Hire Freelancers

linux sed command help

$10-30 USD

Imeghairiwa
Imechapishwa over 2 years ago

$10-30 USD

Kulipwa wakati wa kufikishwa
I would like someone to give me the exact syntax to run a sed command on Ubuntu 18.04 LTS to remove a line for many text files. I want to remove this line: <?php include $_SERVER['DOCUMENT_ROOT']."[login to view URL]"; ?>CRLF The line ends with a CR (carriage return) and LF (line feed) OR only with a LF (line feed). I need to remove this line from thousands of files and I tried all kinds of variations but I cannot find the right syntax. I used something like this: find ./ *.html -type f -exec sed -i 's/\<\?php\ include\ \$\_SERVER\[\'DOCUMENT\_ROOT\'\]\.\"test\.php\"\;\ \?\>/d' {} based on this: find ./ *.html -type f -exec sed -i 's/test1/test2/g' {} Thanks
Kitambulisho cha mradi: 30978441

Kuhusu mradi

5 mapendekezo
Mradi wa mbali
Inatumika 3 yrs ago

Unatafuta kupata pesa?

Faida za kutoa zabuni kwenye Freelancer

Weka bajeti yako na muda uliopangwa
Pata malipo kwa kazi yako
Eleza pendekezo lako
Ni bure kujiandikisha na kutoa zabuni kwa kazi
5 wafanyakazi huru wana zabuni kwa wastani $24 USD kwa kazi hii
Picha ya Mtumiaji
Hi, I have gone through with your requirements and understood that you need. I can help you in your project. I am ready to start the project now. I have very good Development skill along with Node Js, React Js, Laravel, PHP, PHP Framework with Database and front end also i have skills with HTML5 ,CSS3, Angular js, Jquery Ajax etc. I will provide our service at very effective rate. So you have quality work with in your budget. I am available almost Full- Time available on Skype , Freelancer mails and chats even on weekends so you will get fast response from our side. Please message me on Freelancer to communicate further and let us know if there is any issue. Looking forward to work with you. Thanks & Regards, Atul Mangal
$20 USD ndani ya siku 1
5.0 (14 hakiki)
3.9
3.9
Picha ya Mtumiaji
Hi I can help you with vscode and regular replace. I am excel expert. I can help you to do your excel work. Please ping me to discuss more. Thanks.
$30 USD ndani ya siku 7
3.4 (5 hakiki)
3.6
3.6
Picha ya Mtumiaji
Can you give an example file? How many lines do the files have? Should get this done pretty fast.
$20 USD ndani ya siku 1
0.0 (0 hakiki)
0.0
0.0

Kuhusu mteja

Bedera ya CANADA
Montreal, Canada
5.0
49
Njia ya malipo imethibitishwa
Mwanachama tangu Okt 23, 2008

Uthibitishaji wa Mteja

Asante! Tumekutumia kiungo cha kudai mkopo wako bila malipo kwa barua pepe.
Hitilafu fulani imetokea wakati wa kutuma barua pepe yako. Tafadhali jaribu tena.
Watumiaji Waliosajiliwa Jumla ya Kazi Zilizochapishwa
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Onyesho la kukagua linapakia
Ruhusa imetolewa kwa Uwekaji wa Kijiografia.
Muda wako wa kuingia umeisha na umetoka nje. Tafadhali ingia tena.