Hello Friends!
New member here. Please let me know if this is not the appropriate forum for my question.
I have a directory with many .dbf files. For whatever reason, some extensions are all-caps (.DBF), and some are not (.dbf) .
I use this line to find all files with ".dbf" extension:
sudo find . -name "*dbf*"
I use this next line to count the number of results, that is, the number of files with ".dbf" extension.
sudo find . -name "*dbf*" | wc -l
Is it possible to join the two commands together such that I would see all the files with ".dbf" extension and also see right away how many they are.
For example, if there are 5 files with ".dbf" extension, I would see something like this:
./aaa.dbf
./bbb.dbf
./ccc.dbf
./ddd.dbf
./eee.dbf
5
Thank you!
New member here. Please let me know if this is not the appropriate forum for my question.
I have a directory with many .dbf files. For whatever reason, some extensions are all-caps (.DBF), and some are not (.dbf) .
I use this line to find all files with ".dbf" extension:
sudo find . -name "*dbf*"
I use this next line to count the number of results, that is, the number of files with ".dbf" extension.
sudo find . -name "*dbf*" | wc -l
Is it possible to join the two commands together such that I would see all the files with ".dbf" extension and also see right away how many they are.
For example, if there are 5 files with ".dbf" extension, I would see something like this:
./aaa.dbf
./bbb.dbf
./ccc.dbf
./ddd.dbf
./eee.dbf
5
Thank you!