Created
May 8, 2014 03:05
-
-
Save penguin2716/564ee6a243efdfb885ae to your computer and use it in GitHub Desktop.
"Hello, world!"と出力するシェルスクリプト
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cat <<EOF > hello.c | |
#include <stdio.h> | |
int main(void) { | |
printf("Hello, world!\n"); | |
return 0; | |
} | |
EOF | |
gcc -o hello hello.c | |
./hello | |
rm -f hello hello.c |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment