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.
8 freelancers are bidding on average $36 for this job
Dear Sir, I have 3 years experiences in writing Linux Script (bash) to manage servers (CentOS/RHEL, SuSE). I can provide you the script right away with high quality. Thanks.
Hi, Linux Admin with experience in scripting various tasks - from the simplest one to complex automation systems. Please check your message box for more information on my experience.