GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it
1#!/bin/bash 2 3DIRH=`pwd` 4 5for x in dir.* ; do 6 7 cd $x 8 9 for y in ordnung.* ; do 10 cd $y 11 12 for z in * ; do 13 cd $z 14 15 for zz in group.* min.* max.* ; do 16 if [ -s $zz ] ; then 17 Order -o $zz >> $zz 18 fi 19 done 20 21 cd .. 22 done 23 cd .. 24 done 25 26 cd $DIRH 27 28done 29 30rm -f $TMP $TMP2 31 32