小脚本实现文件分卷压缩
2011 年 11 月 14 日 小脚本实现文件分卷压缩无评论
#!/bin/bash
#!Creat by tianyu 2011-11-14
FOLDERNAME="$1"
USER="tianyu@ttg"
ls
cp /home/zip/$USER* $FOLDERNAME/
rar a -r -m0 -v1000m /home/zip/[$USER]$FOLDERNAME.rar $FOLDERNAME
#mv "[$USER]$FOLDERNAME.rar" /home/zip/
rm $FOLDERNAME/$USER*
#rar a "[$USER]$FOLDERNAME.rar" ./$USER* -p$USER
#rar a "[$USER]$FOLDERNAME.rar" ./password.txt -rr3%
cd /home/zip
#unrar v "[$USER]$FOLDERNAME.rar"
#!Creat by tianyu 2011-11-14
FOLDERNAME="$1"
USER="tianyu@ttg"
ls
cp /home/zip/$USER* $FOLDERNAME/
rar a -r -m0 -v1000m /home/zip/[$USER]$FOLDERNAME.rar $FOLDERNAME
#mv "[$USER]$FOLDERNAME.rar" /home/zip/
rm $FOLDERNAME/$USER*
#rar a "[$USER]$FOLDERNAME.rar" ./$USER* -p$USER
#rar a "[$USER]$FOLDERNAME.rar" ./password.txt -rr3%
cd /home/zip
#unrar v "[$USER]$FOLDERNAME.rar"
发表评论