标签:
批量替换程序的文件注释头
Install: Just unpack the files into your home directory. It will create a
directory ~/rh containing all files. Now edit the file ~/rf/header.template
to fit your needs. That‘s it.
Usage: ~/rh/replace_header.sh <file>
This replaces only the header of the given file. That‘s how it works, but the
power comes in combination with the find utility. See the following example
how it works together with find.
Example: Recursively change all header files
$ cd ~/your/source/dir
$ find . -name "*.h" # verify the output to check what is going to be changed.
$ find . -name "*.h" -exec ~/rh/replace_header.sh {} \; # Now replace them all.
============
在整理gobelieve IM SDK的过程中,需要批量修改源文件的版权注释信息, 然后,stackflow上找到的这个脚本
ok!!!!
===================
下载地址:http://download.csdn.net/detail/shengmaqianzi/8600717
标签:
原文地址:http://www.cnblogs.com/nuanshou/p/4432231.html