add a script to determine wether a file is a regular file

Signed-off-by: Wang Xiaoqiang <wangxq10@lzu.edu.cn>