33 lines
812 B
Plaintext
33 lines
812 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
# Modified: 22/12/2022
|
||
|
# P Anelli"
|
||
|
# Session 4
|
||
|
|
||
|
source ${LIBSH}/libeval.sh
|
||
|
|
||
|
#-----------------------------------------
|
||
|
challenge="C32 & C33"
|
||
|
rep=~/Sequence3/imdb
|
||
|
file=/tmp/c3233.txt
|
||
|
#-----------------------------------------
|
||
|
# Debut
|
||
|
banniere $challenge
|
||
|
|
||
|
# 1 Bon repertoire
|
||
|
[ "$rep" == $(pwd) ]
|
||
|
step $(vraifaux $?) "Le repertoire courant est $rep" true
|
||
|
|
||
|
# 2 Resultat recu
|
||
|
cat <&0 >|$file
|
||
|
echo "Pas: 2 Affichage des 10 premieres lignes du resultat a evaluer"
|
||
|
echo "==================== Debut du resultat recu ======================"
|
||
|
head $file
|
||
|
echo "==================== Fin du resultat recu ======================"
|
||
|
|
||
|
#-----------------------------------------
|
||
|
echo -e "Pas: 3 *** Calcul du code pour le resultat ***\n"
|
||
|
#-----------------------------------------
|
||
|
status "$(cat $file)"
|
||
|
exit 0
|