1 Star 0 Fork 0

sierxue/scripts

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
copy_files.sh 1.63 KB
一键复制 编辑 原始数据 按行查看 历史
sierxue 提交于 2024-01-31 17:40 . revise: copy_files.sh
#!/bin/bash
# https://app.yinxiang.com/shard/s22/nl/4928451/ea347a17-ae87-4853-9e49-ce2a2de73196
# copy_file()
# {
# if [ ! -f "$1" ]; then
# echo ""$1" not found!"
# notify-send ""$1" not found!"
# fi
# if [ "$1" -nt "$2/$(basename $1)" ]; then
# \cp "$1" "$2"
# echo ""$1" has been updated on $(LC_TIME=en_US.UTF-8 date +%Y-%m-%d-%H-%M-%S-%a)!"
# fi
# }
FILE1=~/Documents/repo-research/compAppr/compAppr.pdf
DESTINATION1=/media/a/DATA/data-yun-T3640/jianguoyun/Nutstore/working
~/.df/dotfiles/scripts/copy_file.sh $FILE1 $DESTINATION1
FILE2=~/.df/dotfiles/vim/UltiSnips/tex_ganx.snippets
DESTINATION2=/home/a/.df/UltiSnips
~/.df/dotfiles/scripts/copy_file.sh $FILE2 $DESTINATION2
FILE3=~/.df/dotfiles/scripts/copy_files.sh
DESTINATION3=/home/a/.df/scripts
~/.df/dotfiles/scripts/copy_file.sh $FILE3 $DESTINATION3
# echo "Revise $FILE3 on $(date +%y%m%d-%H)"
FILE4=~/.df/dotfiles/vim/UltiSnips/all.snippets
DESTINATION4=/home/a/.df/UltiSnips
~/.df/dotfiles/scripts/copy_file.sh $FILE4 $DESTINATION4
# echo "Revise $FILE4 on $(date +%y%m%d-%H)"
FILE5=~/Documents/repo-research/sddsp/sddsp.pdf
DESTINATION5=/media/a/DATA/data-yun-T3640/jianguoyun/Nutstore/working
~/.df/dotfiles/scripts/copy_file.sh $FILE5 $DESTINATION5
FILE6=~/.df/dotfiles/scripts/config/crontab_main
DESTINATION6=/home/a/.df/scripts/config
~/.df/dotfiles/scripts/copy_file.sh $FILE6 $DESTINATION6
# FILE7=*.sgf
# SOURCE7=~/Downloads/
# DESTINATION7=/media/a/DATA/data-yun-T3640/jianguoyun/Nutstore/weiqipu/yike
# move_files $SOURCE7 $FILE7 $DESTINATION7
mv ~/Downloads/*.sgf /media/a/DATA/data-yun-T3640/jianguoyun/Nutstore/weiqipu/yike/
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/sierxue/scripts.git
git@gitee.com:sierxue/scripts.git
sierxue
scripts
scripts
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385