Find Jobs
Hire Freelancers

Write some Software

£10-20 GBP

Annullato
Pubblicato più di 7 anni fa

£10-20 GBP

Pagato al completamento
I need a simple shell script. Imagine there are some directories like this; /var/www/website1/.env /var/www/website2/.env /var/www/website3/.env and so on Every folder has .env file. In every .env file following variable available; DB=1 in another .env file DB=2 another .env file has DB=3 and DB=4 DB value is unique for each .env file for each website folder so each .env file should have different digits that never used in other .env files. These are applied manually with vim editor now but i want to do it with shell script. At the moment I copy website folders and manually change DB value in new .env file. Somehow shell script needs to grep DB variable and its value. List the digits (1,2,3 in above example) from varible DB in .env files and Sort them in order like 1,2,3,4... Count 1 to 40 because DB value should not cross 40. if .env files have DB value 1,2,3 then next DB value should be 4. When i create a new .env file shell script should replace new .env files DB value to 4 (DB=4). Shell script needs to find which one is the next digit up to value 40 though. Any questions please ask. Thanks
Rif. progetto: 11800213

Info sul progetto

Progetto a distanza
Attivo 8 anni fa

Hai voglia di guadagnare un po'?

I vantaggi delle offerte su Freelancer

Imposta il tuo budget e le scadenze
Fatti pagare per il lavoro svolto
Delinea la tua proposta
La registrazione e le offerte sui lavori sono gratuite

Info sul cliente

Bandiera: UNITED KINGDOM
London, United Kingdom
5,0
2
Metodo di pagamento verificato
Membro dal ott 1, 2014

Verifica del cliente

Grazie! Ti abbiamo inviato tramite email il link per richiedere il tuo bonus gratuito.
Non è stato possibile inviarti l'email. Riprova per piacere.
di utenti registrati di lavori pubblicati
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Caricamento anteprima
Autorizzazione per la geolocalizzazione concessa.
La tua sessione è scaduta ed è stato effettuato il log out. Accedi nuovamente per piacere.