Suppose in unix directory,there are some files placed with same filename but with different extension like
abc.001
abc.002
abc.003
There can be n number of files.
I need to first get the files from the directory and then iterate on each files. With the below command I am getting the files but can anyone please help how to iterate on each file and read each file and do processing.?
find "/tmp/files/" -name "abc.*" -type f -exec echo {} \;
    
for f in abc.*; do [[ "$f" =~ "abc."[0-9]{3} ]] && echo "Processed: $f"; done