Chapter 6

for f in *.txt; do

done

while

We can also use the find command to locate all files that match a specified pattern starting from the current directory:

find . -name *.txt

Last updated