Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
"Hello, world!"と出力するシェルスクリプト
#!/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