mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-10-22 05:44:17 -04:00
Let's try using egrep instead of grep since grep on Solaris
systems was failing to work right.
This commit is contained in:
1 parent
e6109f496c
commit
b88f6fe7e5
1 file changed
+2
-2
@@ -23,12 +23,12 @@ echo extra >"$todir"/emptydir/subdir/remove4
|
||||
# Also, make sure that --dry-run --del doesn't output anything extraneous.
|
||||
$RSYNC -av "$fromdir/" "$chkdir/copy/" >"$tmpdir/copy.out" 2>&1
|
||||
cat "$tmpdir/copy.out"
|
||||
grep -v '^\(created directory\|sent\|total size\) ' "$tmpdir/copy.out" >"$tmpdir/copy.new"
|
||||
egrep -v '^(created directory|sent|total size) ' "$tmpdir/copy.out" >"$tmpdir/copy.new"
|
||||
mv "$tmpdir/copy.new" "$tmpdir/copy.out"
|
||||
|
||||
$RSYNC -avn --del "$fromdir/" "$chkdir/copy2/" >"$tmpdir/copy2.out" 2>&1 || true
|
||||
cat "$tmpdir/copy2.out"
|
||||
grep -v '^\(created directory\|sent\|total size\) ' "$tmpdir/copy2.out" >"$tmpdir/copy2.new"
|
||||
egrep -v '^(created directory|sent|total size) ' "$tmpdir/copy2.out" >"$tmpdir/copy2.new"
|
||||
mv "$tmpdir/copy2.new" "$tmpdir/copy2.out"
|
||||
|
||||
diff $diffopt "$tmpdir/copy.out" "$tmpdir/copy2.out"
|
||||
|
||||
Reference in new issue
Block a user