Rev 2240 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2240 | Rev 3483 | ||
---|---|---|---|
Line 1... | Line -... | ||
1 | !sh cd $wims_home/log/classes/$wims_class/cdt/def;\ |
- | |
2 | grep date_todo= * | awk -F":!set date_todo=" '{if($$2!="") print $$1","$$2;}' | awk -F"," '{i=2; while(i<=NF) {print $$i","$$1;i++;};}' >$wims_home/log/classes/$wims_class/cdt/index; |
- | |
3 | nbdate=!sh cd $wims_home/log/classes/$wims_class/cdt/def;\ |
1 | nbdate=!sh cd $wims_home/log/classes/$wims_class/cdt/def;\ |
4 | t1=`ls -1 | awk 'END {print FNR;}'`;\ |
2 | t1=`ls -1 | awk 'END {print FNR;}'`;\ |
5 | t2=`ls -1 | cut -c1-6 | sort | uniq `;\ |
3 | t2=`ls -1 | cut -c1-6 | sort | uniq `;\ |
6 | echo "$$t1";\ |
4 | echo "$$t1";\ |
7 | echo "$$t2"; |
5 | echo "$$t2"; |
8 | cdt_nbdate=!line 1 of $nbdate |
6 | cdt_nbdate=!line 1 of $nbdate |
9 | cdt_ltmonth=!line 2 to -1 of $nbdate |
7 | cdt_ltmonth=!line 2 to -1 of $nbdate |
10 | cdt_ltmonth=!lines2items $cdt_ltmonth |
8 | cdt_ltmonth=!lines2items $cdt_ltmonth |
- | 9 | !if $cdt_nbdate<2 |
|
- | 10 | !writefile wimshome/log/classes/$wims_class/cdt/def/10000101 !set date_todo= |
|
- | 11 | !sh cd $wims_home/log/classes/$wims_class/cdt/def;\ |
|
- | 12 | grep date_todo= * | sed 's/:!set date_todo=/,/g' | awk -F"," '$$2!=""{i=2; while(i<=NF) {print $$i","$$1;i++;};}' >$wims_home/log/classes/$wims_class/cdt/index;\ |
|
- | 13 | rm -f $wims_home/log/classes/$wims_class/cdt/def/10000101; |
|
- | 14 | !else |
|
- | 15 | !sh cd $wims_home/log/classes/$wims_class/cdt/def;\ |
|
- | 16 | grep date_todo= * | sed 's/:!set date_todo=/,/g' | awk -F"," '$$2!=""{i=2; while(i<=NF) {print $$i","$$1;i++;};}' >$wims_home/log/classes/$wims_class/cdt/index; |
|
- | 17 | !endif |
|
11 | !setdef !set cdt_nbdate=$cdt_nbdate\ |
18 | !setdef !set cdt_nbdate=$cdt_nbdate\ |
12 | !set cdt_ltmonth=$cdt_ltmonth in wimshome/log/classes/$wims_class/cdt/.def |
19 | !set cdt_ltmonth=$cdt_ltmonth in wimshome/log/classes/$wims_class/cdt/.def |
13 | cdt_nbmonth=!itemcnt $cdt_ltmonth |
20 | cdt_nbmonth=!itemcnt $cdt_ltmonth |