source: cpc/trunk/project/batch/depute/parse_tous.sh @ 1297

Last change on this file since 1297 was 1297, checked in by teymour, 11 years ago

creation des repertoires html

File size: 358 bytes
Line 
1#!/bin/bash
2
3DIR=$(echo $0 | sed 's/[^\/]*$//');
4
5if echo $DIR | grep -i [a-z]
6then
7    cd $DIR
8fi
9
10if [ ! -d out ] ; then mkdir out; fi
11if [ ! -d html ] ; then mkdir html; fi
12
13for d in html/* ; 
14do
15    ID=$(echo $d | sed 's/html\///' | sed 's/.asp//')
16    if test -n "$1"; then
17            echo $ID;
18    fi
19    perl parse_depute.pl html/$ID.asp > out/$ID.xml
20done
Note: See TracBrowser for help on using the repository browser.