3 ms·I actually do this instead: find . | grep "\.txt$"by hasenj 11y agoI actually do this instead: find . | grep "\.txt$"rejap 11y agoonce you mentioned it, the original commands which are compared are not equivalent. Dir does case insensitive search, find is case sensitive. The equivalent would be: find . | grep -i "\.txt$"Tiksi 11y agoYou can do a case insensitive search with -iname: find . -iname "*.txt"