#!/bin/sh FILE="lesson$1/l$1" nasm -f elf $FILE.asm -o $FILE.o ld -m elf_i386 $FILE.o -o $FILE if [ "$2" = "r" ] then ./$FILE fi