#!/bin/sh #****************************************************************# # ScriptName: gccmodify.sh # Function: compile *.c which mtime is 0 (in 24 hours) in current dir #***************************************************************# for file in `find *.c -mtime 0 ` do gcc $file -lggw -o ${file%.*} done
原文地址:http://blog.csdn.net/thinkmore1314/article/details/35569011