cpdiff shell
来源:互联网 发布:单片机教程网 编辑:程序博客网 时间:2024/06/16 22:34
#!/bin/kshif [ $# != 1 ] || [ -z "$1" ]then echo ">>> Usage:cpdiff FileName|\"*\"" exit 1fifile_list=$1src_dir=$PWDview_dir=${src_dir##*/code/durian/durian_main}echo "@@@@@@@@ begin to diff and copy file @@@@@@@@"echo "" for file in ${file_list[@]} do if [ ! -e "$file" ] then echo "$file does not exist."; continue fi if [ ! -e "$view_dir/$file" ] then echo "$view_dir/$file does not exist."; continue fi diff $file $view_dir/$file > /dev/null if [[ $? -eq 0 ]] then echo $file is same else echo $file is not same cpcode $file if [[ $? -eq 0 ]]then echo "OK copy to $view_dir"fi fi doneexit 0
- cpdiff shell
- shell
- shell
- shell
- shell
- shell
- Shell
- shell
- Shell
- shell
- shell
- SHELL
- Shell
- shell
- shell
- shell
- shell
- shell
- 仅在地址栏输入简单代码,浏览器变编辑器
- Map/Reduce中Join查询实现
- TCP非阻塞accept和非阻塞connect
- 关于项目运行缓慢的问题(以jsutepX5为例)
- this.class.getClassLoader().getResourceAsStream
- cpdiff shell
- sublime3 package Control 安装
- C++ AMP: 哈夫变换求平面参数的GPU实现
- boost bind
- Qt版本的TEA加解密使用
- 若干经典的字符串哈希函数
- 内存管理之slab分配器
- C常见问题之结构的声明和结构变量的定义方式
- CCActionEase