Comment Comment by erdbeerkaese Another way: while read line ; do basename "$line" ; done < a.txt parent erdbeerkaese 11 years ago