Here is another, quicker version: find /my/folder -exec file {} ";" | grep 'Berkeley' This command will print the list of all files from `/my/folder`, which have the type of `Berkeley DB`. Above else, this is the type of the Bitoin wallet files.