rename.unix
来自「完整的解压zip文件的源码。包含密码功能」· UNIX 代码 · 共 61 行
UNIX
61 行
#!/bin/sh# Info-ZIP script tandem/rename.unix for UnZip 5.32 and later## This script should be run on a Unix system in order to rename appropriately# the source files required for the Tandem port. Note that the source files# should have DOS-style line-endings (CR/LF), which can be accomplished by# archiving them with "zip -l" and unarchiving with "unzip -b", or by ftp'ing# them to the Tandem system in ASCII mode.MV="/bin/mv"#MV="/bin/cp -p"if [ -d tandem ]; then cd tandemfiif [ -f tandemc ]; then echo "error: tandemc already exists" exit 1fiif [ ! -f tandem.c ]; then echo "error: can't find tandem.c" echo " (either files are already renamed or else we're not in UnZip directory)" exit 2fiecho "Renaming source files for Tandem (command = $MV) ..."$MV tandem.c tandemc$MV tandem.h tandemh$MV ../consts.h constsh$MV ../crc32.c crc32c$MV ../crctab.c crctabc$MV ../crypt.c cryptc$MV ../crypt.h crypth$MV ../ebcdic.h ebcdich$MV ../envargs.c envargsc$MV ../explode.c explodec$MV ../extract.c extractc$MV ../fileio.c fileioc$MV ../globals.c globalsc$MV ../globals.h globalsh$MV ../inflate.c inflatec$MV ../inflate.h inflateh$MV ../list.c listc$MV ../match.c matchc$MV ../process.c processc$MV ../tables.h tablesh$MV ../ttyio.c ttyioc$MV ../ttyio.h ttyioh$MV ../unshrink.c unshrinc$MV ../unzip.c unzipc$MV ../unzip.h unziph$MV ../unzpriv.h unzprivh$MV ../version.h versionh$MV ../zip.h ziph$MV ../zipinfo.c zipinfocecho "Done."
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?