📄 test16
字号:
#!/bin/sh. ./init_testecho "*** Initialisation with 2 hosts, with mismatched file/full dir"touch $H/A/On_Atouch $H/B/On_Btouch $H/A/A_newer_than_B ; stamp 05 $H/A/A_newer_than_Bmkdir $H/B/A_newer_than_B touch $H/B/A_newer_than_B/new ; stamp 06 $H/B/A_newer_than_B/new stamp 04 $H/B/A_newer_than_Btouch $H/A/B_newer_than_A ; stamp 04 $H/A/B_newer_than_Amkdir $H/B/B_newer_than_A touch $H/B/B_newer_than_A/new2 ; stamp 06 $H/B/B_newer_than_A/new2 stamp 05 $H/B/B_newer_than_Atouch $H/A/file ; stamp 14 $H/A/filemkdir $H/B/file touch $H/B/file/old ; stamp 13 $H/B/file/old stamp 12 $H/B/file# I choose to take the most recent in the hierarchyrunA -f $H/ArunB -a $H/B[ ! -f $H/B/On_B ] && Exit 100[ -d $H/B/.nnfs/history ] && Exit 200runA[ ! -f $H/A/On_A ] && Exit 101[ ! -d $H/A/.nnfs/history ] && Exit 201[ ! -f $H/A/.nnfs/history/*/*/B_newer_than_A ] && Exit 202[ ! -f $H/A/.nnfs/history/*/*/A_newer_than_B ] && Exit 203[ ! -f $H/A/.nnfs/history/*/*/file ] && Exit 204[ ! -d $H/A/file ] && Exit 301[ ! -d $H/A/A_newer_than_B ] && Exit 302[ ! -d $H/A/B_newer_than_A ] && Exit 303same $H/A On_B $H/B On_B || Exit 102same $H/A B_newer_than_A $H/B B_newer_than_A || Exit 304same $H/A A_newer_than_B $H/B A_newer_than_B || Exit 305same $H/A/B_newer_than_A new2 $H/B/B_newer_than_A new2 || Exit 103same $H/A/A_newer_than_B new $H/B/A_newer_than_B new || Exit 104runB[ -d $H/B/.nnfs/history ] && Exit 204same $H/A On_A $H/B On_A || Exit 105Exit 0
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -