echo 'int square(int num) { return num*num; }' | gcc -S -x c - -o -
#!/bin/sh rm -f test_copy.c while true ; do if [ test.c -nt test_copy.c ] ; then cp test.c test_copy.c clear gcc -S test_copy.c -o - fi sleep 0.3 done