(続々)Cでワンライナー
で、出来た。
問題点は、文字列中の\nの¥をエスケープしなくてはいけないこと。
$ echo -e '#include<stdio.h>\nint main(){printf("helloworld\\n");return 0;}'|gcc -Wall -x c -;./a.out;rm a.out helloworld
で、出来た。
問題点は、文字列中の\nの¥をエスケープしなくてはいけないこと。
$ echo -e '#include<stdio.h>\nint main(){printf("helloworld\\n");return 0;}'|gcc -Wall -x c -;./a.out;rm a.out helloworld