Username:   Password:  

List all text files and append foo

for i in *.txt; do echo $i"foo"; done
 

Lists all files and appends "foo" to every file (only on the output).

Tags

list files bash