Skip to content

Instantly share code, notes, and snippets.

@juliusknorr
Created April 29, 2013 18:22
Show Gist options
  • Save juliusknorr/5483606 to your computer and use it in GitHub Desktop.
Save juliusknorr/5483606 to your computer and use it in GitHub Desktop.
sysprog add exercise script
#!/bin/bash
mkdir a$1 # create folder
touch a$1/readme # create readme
touch a$1/a$1.c # create main c file
## Template for readme
echo "Autor: Julius Haertl
Systemprogrammierung SS 2013
Blatt 2: Prozesse unter Linux
Aufgabe $1
Vorbedingung:
Aktuelles Arbeitsverzeichnis ist: blatt2/a$1
Generierungsanleitung:
Programm kompilieren:
$ gcc -o a$1 a$1.c
Bedienungsanleitung:
1. Programm starten
$ ./$1
" > a$1/readme
## Template for a00.c
echo "// Julius Haertl
#include <stdio.h>
int main(int argc, char** argv) {
return 0;
}
" > a$1/a$1.c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment