Find Jobs
Hire Freelancers

Check for missing line in files recursively and add it

$10-30 USD

Concluído
Publicado há mais de 9 anos

$10-30 USD

Pago na entrega
Hi, I need a shell, python, or perl script i can run in cron at 1 min interval temporarily on CentOS6 that does the following. It searches /home/xen recursively looking for the following line in all .cfg files it finds in all subdirectories. This line exactly: device_model_version = 'qemu-xen-traditional' Only if it's missing it adds it to the end of the file Example directory structure showing multiple files it would need to iterate through in different subdirectories of /home/xen [root@xenhost1 xen]# pwd /home/xen [root@xenhost1 xen]# ls -Rl .: total 8 drwxr-xr-x 3 root root 4096 Feb 19 16:15 vm101 drwxr-xr-x 3 root root 4096 Feb 18 15:58 vm102 ./vm101: total 8 drwxr-xr-x 2 root root 4096 Dec 15 14:50 mnt -rw-r--r-- 1 root root 755 Feb 18 15:58 [login to view URL] ./vm101/mnt: total 0 ./vm102: total 8 drwxr-xr-x 2 root solusvm 4096 Feb 12 16:55 mnt -rw-r--r-- 1 solusvm solusvm 755 Feb 18 15:58 [login to view URL] ./vm102/mnt: total 0 [root@xenhost1 xen]#
ID do Projeto: 7171891

Sobre o projeto

1 proposta
Projeto remoto
Ativo há 9 anos

Quer ganhar algum dinheiro?

Benefícios de ofertar no Freelancer

Defina seu orçamento e seu prazo
Seja pago pelo seu trabalho
Descreva sua proposta
É grátis para se inscrever e fazer ofertas em trabalhos
Concedido a:
Avatar do Usuário
Hello, I can do it in PERL by the end of today. Please check my profile for feedback. Thanks. Alexei
$30 USD em 1 dia
4,1 (4 avaliações)
3,6
3,6

Sobre o cliente

Bandeira do(a) UNITED STATES
Henderson, United States
5,0
1
Método de pagamento verificado
Membro desde fev. 20, 2015

Verificação do Cliente

Obrigado! Te enviamos um link por e-mail para que você possa reivindicar seu crédito gratuito.
Algo deu errado ao enviar seu e-mail. Por favor, tente novamente.
Usuários Registrados Total de Trabalhos Publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Carregando pré-visualização
Permissão concedida para Geolocalização.
Sua sessão expirou e você foi desconectado. Por favor, faça login novamente.