-
Notifications
You must be signed in to change notification settings - Fork 0
/
05-typo
executable file
·80 lines (65 loc) · 2.49 KB
/
05-typo
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#!/bin/zsh
echo "MINUSCULE EN DÉBUT DE LIGNE"
egrep '^[a-z]' capes*.txt agregation*.txt ens*.txt
echo
echo "ESPACES MULTIPLES"
grep ' ' capes*.txt agregation*.txt ens*.txt
sed -i s/' +'/' '/g agregation_*.txt capes_*.txt ens-ulm-*.txt
echo
echo "SIGNES DOUBLES"
egrep '[^ ][\?!;:]' capes*.txt agregation*.txt ens*.txt
sed -i s/'\([^ ]\)\([\?!;:]\)'/'\1 \2'/g agregation_*.txt capes_*.txt ens-ulm-*.txt
echo
echo "DEUX-POINTS"
grep ' :' capes*.txt agregation*.txt ens*.txt
sed -i s/' :'/' :'/g agregation_*.txt capes_*.txt ens-ulm-*.txt
echo
echo "POINT-VIRGULE"
grep ' ;' capes*.txt agregation*.txt ens*.txt
sed -i s/' ;'/' ;'/g agregation_*.txt capes_*.txt ens-ulm-*.txt
echo
echo "APOSTROPHE"
grep '’' capes*.txt agregation*.txt ens*.txt
sed -i s/’/\'/g agregation_*.txt capes_*.txt ens-ulm-*.txt
echo
echo "POINT D'EXCLAMATION"
grep ' !' capes*.txt agregation*.txt ens*.txt
sed -i s/' !'/' !'/g agregation_*.txt capes_*.txt ens-ulm-*.txt
echo
echo "POINT D'INTERROGATION"
grep ' ?' capes*.txt agregation*.txt ens*.txt
sed -i s/' ?'/' ?'/g agregation_*.txt capes_*.txt ens-ulm-*.txt
echo
echo "GUILLEMETS"
grep '« ' capes*.txt agregation*.txt ens*.txt
grep ' »' capes*.txt agregation*.txt ens*.txt
sed -i s/'« '/'« '/g agregation_*.txt capes_*.txt ens-ulm-*.txt
sed -i s/' »'/' »'/g agregation_*.txt capes_*.txt ens-ulm-*.txt
echo
echo "À"
grep -i 'à ' capes*.txt agregation*.txt ens*.txt
sed -i s/'\([Àà]\) '/'\1 '/g agregation_*.txt capes_*.txt ens-ulm-*.txt
echo
echo "ESPACES EN FIN DE LIGNE"
grep -E ' +$' capes*.txt agregation*.txt ens*.txt
sed -i s/' $'//g agregation_*.txt capes_*.txt ens-ulm-*.txt
echo
echo "POINT EN FIN DE CITATION"
grep '[^\.]\. »' capes*.txt agregation*.txt ens*.txt
sed -i s/'[^\.]\. »'/' »'/g agregation_*.txt capes_*.txt ens-ulm-*.txt
echo
echo "Y A-T-IL"
grep -i 'y a-t-il' capes*.txt agregation*.txt ens*.txt
sed -i s/'y a-t-il'/'y a-t-il'/g agregation_*.txt capes_*.txt ens-ulm-*.txt
sed -i s/'Y a-t-il'/'Y a-t-il'/g agregation_*.txt capes_*.txt ens-ulm-*.txt
sed -i s/'y-a'/'y a'/g agregation_*.txt capes_*.txt ens-ulm-*.txt
sed -i s/'Y-a'/'Y a'/g agregation_*.txt capes_*.txt ens-ulm-*.txt
echo
echo "DEUX SUJETS SUR UNE LIGNE"
egrep '\? [^\n]' capes*.txt agregation*.txt ens*.txt
echo
echo "ORTHOGRAPHE"
grep "Etat" agregation_*.txt capes_*.txt ens-ulm-*.txt
grep "Etre" agregation_*.txt capes_*.txt ens-ulm-*.txt
sed -i s/'Etat'/'État'/g agregation_*.txt capes_*.txt ens-ulm-*.txt
sed -i s/'Etre'/'Être'/g agregation_*.txt capes_*.txt ens-ulm-*.txt