#!/bin/bash # https://www.davidvajda.de/viewtopic.php?p=1688#p1688 l=\$(ls) for s in \$l do echo "\$s" done