#!/bin/bash FAJLOK='*.txt' ls $FAJLOK | while read next_file do echo $next_file done