#!/bin/bash if [ -f $1.asm ] then echo "$1.asm Exists"; nasm -f elf $1.asm -l $1.lst ld -m elf_i386 -o $1 $1.o else echo "$1.asm Does Not Exists"; fi