2014-11-17 11:10:35 +08:00

8 lines
160 B
Bash
Executable File

#!/bin/sh
time=`stat -c %x $2 | awk '{print \$1}'`
sed -i '1i\'"// Source : $1" $2
sed -i '2i\'"// Author : Hao Chen" $2
sed -i '3i\'"// Date : $time\n" $2