Tuesday, November 22, 2022

Find files of a particular extension in bash

 echo "enter extension"
read ext
for i in `find . -name "*.$ext" -type f`; do
    echo "$i"
done

No comments:

Post a Comment