Script bash "MontreFST.sh
[Script appelé par le script "MONTER" - n'a pas vocation à être exécuté seul]
#!/bin/bash # Script appelé par le script "MONTER" (n'a pas vocation à être exécuté seul) # VERT="\\033[1;32m" NORMAL="\\033[0;39m" ROUGE="\\033[1;31m" ROSE="\\033[1;35m" BLEU="\\033[1;34m" BLANC="\\033[0;02m" BLANCLAIR="\\033[1;08m" JAUNE="\\033[1;33m" CYAN="\\033[1;36m" # # Usage if echo $* | grep --ignore-case --no-messages --quiet --regexp=--help --regexp=-h --regexp=--version --regexp=--V then echo -e "$VERT" cat <
>> fsarchiver probe simple <<<=====================' "$NORMAL" fsarchiver probe echo ' ' echo -e "$VERT" '_________________________________________________________________________' "$NORMAL" echo ' ' echo -e "$BLEU" 'appuyez sur une touche pour sortir' "$NORMAL" read key exit 0 fi # # echo echo echo -e "$JAUNE" "-------- Comme demandé (option -d --detailler) j'affiche d'abord les disques et les partitions -----------" "$NORMAL" echo echo # ----Version "Console texte"---- echo -e "$VERT" " ----------------------------------------------------------------------" "$NORMAL" echo -e "$BLEU" " Partitions existantes " "$NORMAL" echo -e "$BLEU" " Ensuite, menu des partitions ( --> appuyez sur une touche + 'Entrée' pour sortir) " "$NORMAL" echo -e "$VERT" ' =====================>>> fsarchiver probe simple <<<======================' "$NORMAL" fsarchiver probe 2> /tmp/fsarch.txt cat -n /tmp/fsarch.txt echo -e "$VERT" ' __________________________________________________________________________' "$NORMAL" echo echo echo -e "$JAUNE" "------------------------------------------------------------------------------------------------------" "$NORMAL" echo echo -e "$BLANCLAIR" " ( --> appuyer sur une touche + 'Entrée' pour sortir) " "$NORMAL" sleep 1 #--> appuyez sur une touche pour sortir : #Source - https://stackoverflow.com/a/11596145 #Posted by Seth Robertson #Retrieved 2026-02-18, License - CC BY-SA 3.0 #read -n 1 x; while read -n 1 -t .1 y; do x="$x$y"; done # Clavier="" ConditionFinale="" until [[ "$Clavier" != "$ConditionFinale" ]] do read Clavier done exit 0 # # ------------------------------------------- FIN ----------------------------------------
Copier