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

560938 views
1
#!/usr/local/bin/bash
2
3
ls | grep reverse_ > tt
4
5
GR="`cat tt | sed "s/ / /g" | sed "s/reverse_//g"`"
6
7
rm $1
8
9
for x in $GR ; do
10
echo x $x
11
y=`echo $x | sed "s/_/ /g"`
12
echo y $y
13
14
head -n 1 -l reverse_$x > tt
15
16
sed "s/^1$/xxxxxxx/" tt > pp
17
18
grep xxxx pp > tt
19
20
if [ -s tt ] ; then
21
echo $y >> $1
22
fi
23
24
done
25
26
rm -f tt pp
27
28