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

📄 migrate_to_3.2.3

📁 一套客户/服务器模式的备份系统代码,跨平台,支持linux,AIX, IRIX, FreeBSD, Digital Unix (OSF1), Solaris and HP-UX.
💻 3
字号:
#!/bin/shecho 'This script is quite dumb, it asks you more questions'echo 'than you might think is necessary. However, this script'echo 'is meant to run exactly one time.'echo ' 'cleanup(){  /bin/rm -f $TMPFILE  exit $EST}EST=0TMPFILE=/tmp/afbu_update_mininfo.3.2.3.$$trap cleanup 2trap cleanup 15echo "Please enter the full path to your server configuration file:"EXISTS=nowhile read CONFIGFILE ; do  if [ ! -r $CONFIGFILE ] ; then    echo "Error: The file $CONFIGFILE is not readable. Please check and try again."    continue  fi  breakdoneecho ' 'cat $CONFIGFILE | awk '{if($0 ~ "^[ 	]*[Ll]ast[-_ 	]*[Cc]artr?i?d?g?e?s[-_ 	]*:?") {sub("^[^0-9]*",""); printf "CartridgeSets:		"; for(i=1;i<=NF;i++){idx=1;for(j=1;j<=NF;j++){if($j<$i && idx<$j+1) idx=$j+1;} printf " %d-%d",idx,$i;} printf "\n";} else { print } }' > $TMPFILESAVEFILE="$CONFIGFILE".`date +%y%m%d%H%M%S`cp "$CONFIGFILE" "$SAVEFILE" \  && /bin/rm -f "$CONFIGFILE" \  && cp $TMPFILE "$CONFIGFILE"if [ $? -ne 0 ] ; then  echo Error: Creating new configuration file failed.fiecho "The differences between old and new configuration file are:"diff "$SAVEFILE" "$CONFIGFILE"if [ $? -eq 0 ] ; then  echo '(none)'fiecho " "echo "If you think, this is not ok, please edit manually."echo "Your old configuration file is saved as $SAVEFILE"cleanup

⌨️ 快捷键说明

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