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

📄 cpr

📁 ftam等标准协议服务器和客户端的源代码。
💻
字号:
#! /bin/sh# cpr## Implements recursive copy for machines which do not have the -R option on cp## Andrew.Findlay@brunel.ac.uk## Derived from:## lndir - create shadow link tree## Time stamp <89/11/28 18:56:54 gildea># By Stephen Gildea <gildea@bbn.com> based on#  XConsortium: lndir.sh,v 1.1 88/10/20 17:37:16 jim ExpUSAGE="Usage: $0 fromdir [todir]"if [ $# -lt 1 -o $# -gt 2 ]then	echo "$USAGE"	exit 1fiPATH=`pwd`:$PATHDIRFROM=$1if [ $# -eq 2 ];then	DIRTO=$2else	DIRTO=.fiif [ ! -d $DIRTO ]then	echo `basename $0`": $DIRTO is not a directory"	echo "$USAGE"	exit 2ficase "$DIRFROM" in	/*) ;;	*)  DIRFROM=`pwd`/$DIRFROM ;;esaccd $DIRTOif [ ! -d $DIRFROM ]then	echo `basename $0`": $DIRFROM is not a directory"	echo "$USAGE"	exit 2fipwd=`pwd`if [ `(cd $DIRFROM; pwd)` = $pwd ]then	echo "$pwd: FROM and TO are identical!"	exit 1fifor file in `ls -a $DIRFROM`do	if [ ! -d $DIRFROM/$file ]	then		#ln -s $DIRFROM/$file .		cp $DIRFROM/$file .	else		if [ \( $file != RCS \) \		     -a \( $file != . \) \		     -a \( $file != .. \) ]		then			#echo $file:			if [ ! -d $file ]			then				mkdir $file			fi			(cd $file			 pwd=`pwd`			 case "$DIRFROM" in				 /*) ;;				 *)  DIRFROM=../$DIRFROM ;;			 esac			 if [ `(cd $DIRFROM/$file; pwd)` = $pwd ]			 then				echo "$pwd: FROM and TO are identical!"				exit 1			 fi			 `basename $0` $DIRFROM/$file			)		fi	fidone

⌨️ 快捷键说明

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