Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
hasenj
· 10y ago · 0 comments
I actually do this instead:
find . | grep "\.txt$"
Comments
[–]
rejap
10y ago
once 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
10y ago
You can do a case insensitive search with -iname: find . -iname "*.txt"