#!/bin/sh for f in $(ls *.lua); do luajit -bg $f "$(echo $f | cut -f 1 -d '.').luo" done