diff --git a/TipsShell.md b/TipsShell.md index 60595654..e8f1e476 100644 --- a/TipsShell.md +++ b/TipsShell.md @@ -146,7 +146,7 @@ Générique : ~~~{.bash} $ DIR=$PWD -$ for file in $(rsync -rvn $DIR REMOTE:$DIR | grep -v "^skipping non-regular file" | head -n -2); do diff $DIR/$file <(ssh REMOTE cat $DIR/$file); done +$ for file in $(rsync -rvn $DIR REMOTE:$DIR | grep -v "^skipping non-regular file" | head -n -2); do echo $DIR/$file :; diff $DIR/$file <(ssh REMOTE cat $DIR/$file); done ~~~ Pour /etc/ : @@ -154,7 +154,7 @@ Pour /etc/ : ~~~ # for file in $(rsync -rvn /etc/ --exclude=*.log --exclude=ssh --exclude=ssl --exclude=.git --exclude=shadow* --exclude=gshadow* REMOTE:/etc/ | \ grep -v "^skipping non-regular file" | head -n -2); do \ -diff /etc/$file <(ssh REMOTE cat /etc/$file); done +echo /etc/$file :; diff /etc/$file <(ssh REMOTE cat /etc/$file); done ~~~ ### Espace et Inode