correction bug
darcs-hash:20020506220932-a279a-94ffedc3662c4ed1c35dd773641e92ca28fbb464.gz
This commit is contained in:
parent
726bc42532
commit
e43ca5b706
1 changed files with 4 additions and 4 deletions
|
@ -21,9 +21,9 @@ if [[ "${ORIG_LOGNAME-$SUDO_USER}" = "" ]]
|
||||||
fi
|
fi
|
||||||
|
|
||||||
groupe=adm
|
groupe=adm
|
||||||
tempF=$(tempfile -d /tmp -p "news-cancel")
|
tempF=$(tempfile -d /tmp -p "newscancel")
|
||||||
tempF2=$(tempfile -d /tmp -p "news-cancel-commentaire")
|
tempF2=$(tempfile -d /tmp -p "newscancelcommentaire")
|
||||||
tempF3=$(tempfile -d /tmp -p "news-cancel-message")
|
tempF3=$(tempfile -d /tmp -p "newscancelmessage")
|
||||||
|
|
||||||
VERIF () {
|
VERIF () {
|
||||||
ligne=`grep --binary-files=text " $1 " /var/spool/news/overview/OV1 | head -n 1 | awk -F "\t" '{print $1"~"$2"~"$3"~"$9}'`
|
ligne=`grep --binary-files=text " $1 " /var/spool/news/overview/OV1 | head -n 1 | awk -F "\t" '{print $1"~"$2"~"$3"~"$9}'`
|
||||||
|
@ -31,7 +31,7 @@ VERIF () {
|
||||||
titre=`echo $ligne | awk -F "~" '{print $2}'`
|
titre=`echo $ligne | awk -F "~" '{print $2}'`
|
||||||
newsgroup=`echo $ligne | awk -F "~" '{print $4}' | awk '{print $3}' | awk -F : '{print $1}'`
|
newsgroup=`echo $ligne | awk -F "~" '{print $4}' | awk '{print $3}' | awk -F : '{print $1}'`
|
||||||
#numero=`echo $ligne | awk -F "~" '{print $1}'`
|
#numero=`echo $ligne | awk -F "~" '{print $1}'`
|
||||||
numero=`echo $ligne | awk -F "~" '{print $4}' |awk -v VAR1=$newsgroup 'BEGIN {RS = " "} ; $0 ~ VAR1 {print $1}' | awk -F ":" '{print $2}'`
|
numero=`echo $ligne | awk -F "~" '{print $4}' |awk -v VAR1=$newsgroup 'BEGIN {RS = " "} ; $0 ~ VAR1 {print $1}' | awk -F ":" '{print strtonum($2)}'`
|
||||||
echo "il s'agit du message $titre, numéro $numero, posté par $auteur dans $newsgroup"
|
echo "il s'agit du message $titre, numéro $numero, posté par $auteur dans $newsgroup"
|
||||||
echo ""
|
echo ""
|
||||||
echo -n "exact ? [o/n] "
|
echo -n "exact ? [o/n] "
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue