Projet

Général

Profil

Enzo Di Sotto » rename_log.sh

Enzo Di Sotto, 20/11/2023 18:51

 
#! /bin/bash
mv /home/user1/ping_failures.log /home/user1/logs/ping_"$(date +"%m-%d-%y-%T")".log
mv /home/user1/curl_failures.log /home/user1/logs/curl_"$(date +"%m-%d-%y-%T")".log
mv /home/user1/port_failures.log /home/user1/logs/port_"$(date +"%m-%d-%y-%T")".log
(39-39/47)