Исправление Kroz, 04.12.16 04:29 (текущая версия) :
ls | while read i; do ./script "$i"; done
Исходная версия Kroz, 04.12.16 04:28:
/thread