*.txt # for all files ending with .txt *xxx* # for all files whose name contains xxx
for file in *.txt do read -r line < "$file" : do whatever with variable "$line" done
head -n1 *.txt
I can answer any questions on using and programming the Unix shell, including the standard POSIX shell and bash.
I have been writing shell programs since 1990 and have written two books on the subject, both published by Apress.
Pro Bash Programming:Scripting the GNU/Linux Shell, Apress 2009 Shell Scripting Recipes: A Problem-Solution Approach, Apress 2005
I completed a Unix systems administrator course given by AT&T Canada.