tech:logique_-_algebre_de_boole

Logique - Algèbre de Boole

Voir :

Ne pas confondre la logique booléenne avec la logique aristotélicienne / scolastique !

En Python

En bash

combine (moreutils)

echo aaa > a.txt
echo bbb > b.txt
echo common | tee a.txt b.txt
$ cat a.txt
aaa
common

$ cat b.txt
bbb
common
$ combine a.txt and b.txt
common

$ combine a.txt or b.txt
aaa
common
bbb
common

$ combine a.txt xor b.txt
aaa
bbb

$ combine a.txt not b.txt
aaa

$ combine a.txt or b.txt |sort | uniq
aaa
bbb
common
tech/logique_-_algebre_de_boole.txt · Dernière modification : de Jean-Baptiste

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki