ls -1 | while read line ;do echo $list ;done OR id like it to instead of the echo - MV to location 2 .