⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 merge.test

📁 Rsync 3.0.5 source code
💻 TEST
字号:
#! /bin/sh# Copyright (C) 2004 by Wayne Davison <wayned@samba.org># This program is distributable under the terms of the GNU GPL (see# COPYING).# Make sure we can merge files from multiple directories into one.. "$suitedir/rsync.fns"# Build some files/dirs/links to copy# Use local dirnames to better exercise the arg-parsing code.cd "$tmpdir"mkdir from1 from2 from3 deepmkdir from2/sub1 from3/sub1mkdir from3/sub2 from1/dir-and-not-dirmkdir chk chk/sub1 chk/sub2 chk/dir-and-not-direcho "one" >from1/onecp_touch from1/one from2/onecp_touch from1/one from3/oneecho "two" >from1/twoecho "three" >from2/threeecho "four" >from3/fourecho "five" >from1/fiveecho "six" >from3/sixecho "sub1" >from2/sub1/unocp_touch from2/sub1/uno from3/sub1/unoecho "sub2" >from3/sub1/dosecho "sub3" >from2/sub1/tresecho "subby" >from3/sub2/subbyecho "extra" >from1/dir-and-not-dir/insideecho "not-dir" >from3/dir-and-not-direcho "arg-test" >deep/arg-testecho "shallow" >shallowcp_touch from1/one from1/two from2/three from3/four from1/five from3/six chkcp_touch deep/arg-test shallow chkcp_touch from1/dir-and-not-dir/inside chk/dir-and-not-dircp_touch from2/sub1/uno from3/sub1/dos from2/sub1/tres chk/sub1cp_touch from3/sub2/subby chk/sub2# Make sure that time has moved on.sleep 1# Get rid of any directory-time differences$RSYNC -av --existing -f 'exclude,! */' from1/ from2/$RSYNC -av --existing -f 'exclude,! */' from2/ from3/$RSYNC -av --existing -f 'exclude,! */' from1/ chk/$RSYNC -av --existing -f 'exclude,! */' from3/ chk/checkit "$RSYNC -avv deep/arg-test shallow from1/ from2/ from3/ to/" "$chkdir" "$todir"# The script would have aborted on error, so getting here means we've won.exit 0

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -