Création d'un script sh pour traiter le fichier hosts

This commit is contained in:
Gabriel Goutte-Solard
2021-03-09 23:06:17 +01:00
parent 77546ce34c
commit e560d84fd5
2 changed files with 9 additions and 2 deletions

4
hosts
View File

@@ -1,2 +1,2 @@
0.0.0.0 ifeelmyself.com
0.0.0.0 www.inoporn.net
0.0.0.0 ifeelmyself.com
0.0.0.0 www.inoporn.net

7
process.sh Normal file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
#On remet les elements du fichier par ordre alphabetique
sort hosts > tmp
#Remplacement du fichier hosts original
mv tmp hosts