source: cpc/trunk/project/batch/amendements/compute_latest_loi.sh @ 1180

Last change on this file since 1180 was 1180, checked in by goya, 11 years ago

pour downloader régulièrement juste les amendemnts d'une loi par exemple grenelle pendant ses débats

File size: 240 bytes
Line 
1#!/bin/bash
2
3loi=$1
4
5rm -f html/*
6
7perl download_amendements_loi.pl $loi > /tmp/download_amendements.log
8
9for file in html/*; do 
10        fileout=$(echo $file | sed 's/html/json/' | sed 's/\.asp/\.xml/')
11        perl cut_amdmt.pl $file > $fileout
12done;
13
Note: See TracBrowser for help on using the repository browser.