Commit b2a49095 authored by Tangui's avatar Tangui

Ajout des dates d'ordonnance

parent ae1d6f11
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -18,10 +18,11 @@ ls requete_*json | while read json ; do
notif=$(json_pp < $json | grep AccuseNotification > /dev/null && echo "NotifOK") ;
requete=$(json_pp < $json | grep numeroRequete | awk -F '"' '{print $4}');
defenseur=$(cat $json | sed 's/.*defendeur":"//' | sed 's/".*//')
echo $rid";"$id";"$file";"$requete";"$defenseur";"$notif;
date=$(json_pp < $json | grep -B 10 "Notification d" | grep dateEvt | awk -F '"' '{print $4}' )
echo $rid";"$id";"$file";"$requete";"$defenseur";"$date";"$notif;
done > ../ordonnances.csv
cat ordonnances.csv | awk -F ';' '{if ( $6 == "NotifOK" && $3)
cat ordonnances.csv | awk -F ';' '{if ( $7 == "NotifOK" && $3)
print "wget -O ordonnance_"$1"_"$4".pdf --load-cookies=../telerecours.cookies " \
"--post-data='"'"'{\"origin\": \"TR_PJ_COPY\",\"typeEvent\": null,\"fileName\": \""$3"_doc.pdf\"}'"'"' " \
"--header=\"content-type: application/json\" " \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment