Salut,
J'ai un petit script save:
#! /bin/bash
# This program is under GPL Licence
# save_config v0.3 by Wedge
VERSION="0.3"
PROGRAM=`basename $0`;
TMP="/tmp/save_config";
DATE=`date +%Y%m%d`;
ARCH=`uname -m`;
LIST_FILE="/etc/fstab /etc/inittab /etc/sudoers /etc/resolv.conf /etc/host* /etc/X11/xorg.conf /etc/rc.d/*.* /etc/swaret.conf /etc/ntp.conf
/etc/samba/*.*
$HOME/.bashrc $HOME/.bash_profile $HOME/.vimrc $HOME/.save $HOME/.traduc $HOME/tuxcards_vrac $HOME/.volume $HOME/.xinitrc
$HOME/.mozilla/firefox/*.* $HOME/.psi/*.* $HOME/.sylpheed/*.* $HOME/.mldonkey/*.* $HOME/.icons/*.* $HOME/.irssi/*.* $HOME/.pan/*.*
$HOME/.xmms/*.* $HOME/.applis/*.* $HOME/.boxjul/*.* $HOME/.fvwm/*.* ";
red="\e[1;31m";
green="\e[1;32m";
yellow="\e[1;33m";
blue="\e[1;34m";
cyan="\e[1;36m";
nc="\e[0m";
function usage()
{
echo -e "${nc}Usage: ${yellow}${PROGRAM}${nc} [-h|--help] [-l|--list] [-v|--version]";
}
function usage_long()
{
usage;
echo
(…)