#!/bin/bash DIR=${1:-maps} for MAP in $(ls "$DIR" | grep '\.tmx$' ) do echo -n "${MAP%.tmx}:" grep '