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

📄 cpall.sh

📁 seismic software,very useful
💻 SH
字号:
#! /bin/sh # cpall , rcpall : for local and remote directory tree/file transfer# Authors: John Stockwell, J.K. Cohen  16 Feb 1990PATH=/bin:/usr/bincmd=`basename $0`case $cmd incpall)	case $# in		2) # OK	;;	*)		echo "Usage: cpall sourcedir destinationdir"		echo "destinationdir must exist" 2>&1; exit 1	;;	esac( cd $1 ; tar cf - . ) | ( cd $2 ; tar vxf - );;rcpall)	case $# in		3) # OK	;;	*)	echo "Usage: rcpall sourcedir remotemachine  destinationdir" 	echo " "	echo "   If user name is different on the remote machine, then second"	echo "   entry is \"remotemachine -l remoteusername\""	echo "Caveat: rsh, copy, and write permissions required"	echo "         You must be on the source machine,"	echo "	       destinationdir must exist. " 2>&1; exit 1	;;	esacecho "Loading in first block (up to 30 seconds)"( cd $1 ; tar cBf - . ) | /usr/ucb/rsh $2 "( cd $3 ; tar vxpBf - )";;esacexit 0

⌨️ 快捷键说明

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