From e560d84fd58ada556149ca61d008156a204fd398 Mon Sep 17 00:00:00 2001 From: Gabriel Goutte-Solard Date: Tue, 9 Mar 2021 23:06:17 +0100 Subject: [PATCH] =?UTF-8?q?Cr=C3=A9ation=20d'un=20script=20sh=20pour=20tra?= =?UTF-8?q?iter=20le=20fichier=20hosts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hosts | 4 ++-- process.sh | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 process.sh diff --git a/hosts b/hosts index bc391be..4143bb9 100644 --- a/hosts +++ b/hosts @@ -1,2 +1,2 @@ -0.0.0.0 ifeelmyself.com -0.0.0.0 www.inoporn.net \ No newline at end of file +0.0.0.0 ifeelmyself.com +0.0.0.0 www.inoporn.net diff --git a/process.sh b/process.sh new file mode 100644 index 0000000..9307cbe --- /dev/null +++ b/process.sh @@ -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 \ No newline at end of file