Script to delete a specific line within a group of files
This project was awarded to kaloyan13 for $30 USD.Get free quotes for a project like this
Project Budget$30 - $250 USD
I need a very simple and quick Script (it could be a bash Script), to run under a Centos Linux Server, to do exactly:
1) It would read a text file, with the names of a series of Domains names, one per line, this way:
and so on.
2) For each of these Domains the Script would search a file in a path always like this:
/home/domainname/www/tabelas_de_saude/[url removed, login to view]
So, as in the example above, the files to be found would be:
/home/aambrosio/www/tabelas_de_saude/[url removed, login to view]
/home/aanoseguros/www/tabelas_de_saude/[url removed, login to view]
/home/abcmack/www/tabelas_de_saude/[url removed, login to view]
/home/abrasivacorretoradeseguros/www/tabelas_de_saude/[url removed, login to view]
/home/abscorretor/www/tabelas_de_saude/[url removed, login to view]
and so son.
3) When finding such a file, the Script would look for a line within, where it would find a string saying:
This line must be deleted from each of those files.
OBS: when rewriting those files, if possible, not to change their original ownership.
Looking to make some money?
- Set your budget and the timeframe
- Outline your proposal
- Get paid for your work
Hire Freelancers who also bid on this project
Looking for work?
Work on projects like this and make money from home!Sign Up Now
- The New York Times
- Wall Street Journal
- Times Online