informatique:linux:commandes_linux
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
informatique:linux:commandes_linux [2025/01/06 10:10] – [find: Exemples] pteu | informatique:linux:commandes_linux [2025/04/25 07:57] (current) – [diff] ignore option pteu | ||
---|---|---|---|
Line 544: | Line 544: | ||
=====diff===== | =====diff===== | ||
- | diff permet d' | + | diff permet d' |
- | < | + | < |
cd /tmp ; echo " | cd /tmp ; echo " | ||
diff toto titi | diff toto titi | ||
Line 553: | Line 553: | ||
> titi | > titi | ||
</ | </ | ||
+ | |||
+ | On peut ignorer des motifs avec l' | ||
Un patchfile c'est un fichier qui contient la sortie d'un diff : | Un patchfile c'est un fichier qui contient la sortie d'un diff : | ||
- | < | + | < |
diff -u toto titi > toto_titi.patch | diff -u toto titi > toto_titi.patch | ||
</ | </ | ||
Pour patcher toto avec les modifications de titi on utilise la commande **patch** avec le patchfile : | Pour patcher toto avec les modifications de titi on utilise la commande **patch** avec le patchfile : | ||
- | < | + | < |
patch -b toto toto_titi.patch | patch -b toto toto_titi.patch | ||
| |
informatique/linux/commandes_linux.1736158248.txt.gz · Last modified: 2025/01/06 10:10 by pteu