tech:logique_-_algebre_de_boole
Différences
Ci-dessous, les différences entre deux révisions de la page.
| tech:logique_-_algebre_de_boole [2025/03/24 15:06] – créée - modification externe 127.0.0.1 | tech:logique_-_algebre_de_boole [2025/05/15 11:11] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 27: | Ligne 27: | ||
| * [[https:// | * [[https:// | ||
| Exemples en Python]] | Exemples en Python]] | ||
| + | |||
| + | |||
| + | |||
| + | == En bash | ||
| + | |||
| + | === combine (moreutils) | ||
| + | |||
| + | <code bash> | ||
| + | echo aaa > a.txt | ||
| + | echo bbb > b.txt | ||
| + | echo common | tee a.txt b.txt | ||
| + | </ | ||
| + | |||
| + | <code -> | ||
| + | $ cat a.txt | ||
| + | aaa | ||
| + | common | ||
| + | |||
| + | $ cat b.txt | ||
| + | bbb | ||
| + | common | ||
| + | </ | ||
| + | |||
| + | <code -> | ||
| + | $ 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.1742825205.txt.gz · Dernière modification : de 127.0.0.1
