Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it

560923 views
1
#!/usr/local/bin/bash
2
3
ls > tt
4
grep lattice tt > pp
5
mv pp tt
6
7
GROUPS="`cat tt | sed "s/ / /g" | sed "s/lattice_//g"`"
8
9
for x in $GROUPS ; do
10
echo x $x
11
y=`echo $x | sed "s/_/ /g"`
12
echo y $y
13
rm tt
14
15
# check whether the first group in this file has the same symbol as
16
# represented by the filename
17
head -l -n3 lattice_$x | grep -l "$y" > tt
18
if [ -s tt ] ; then
19
echo OK
20
else
21
echo NOT_OK symbol: $y
22
fi
23
24
# check whether the first group appears exactly once in the file
25
head -l -n4 lattice_$x | sed "s/^1 $/xxxxxxx/g" | grep -l "xxxxx" > tt
26
if [ -s tt ] ; then
27
echo OK
28
else
29
echo NOT_OK symbol: $y
30
fi
31
32
done
33
34
rm -f tt
35
36