I have a problem with my while loops in bash. I read filenames from a file and I want to process them after that. The problem is that the while loop stops at the last line and without processing it which forces us to have an empty last line at that file ( which some tends to be deleted from time to time). Is there a way to loop an include the last line?
#datafile filename1 filename2
while read project_name do echo $project_name done < "datafile"
this will print out filename1 but not 2.
BRG Anders Olme