#!/bin/bash l=$(ls) for s in $l do echo "[img]https://www.davidvajda.de/david4/regexpr/$s[/img]" done