#!/bin/bash for i in $(cd BestOf; ls -1) do echo "[rigimg:800:$i]" done