Y
Hacker News
new
|
ask
|
show
|
jobs
by
hasenj
3763 days ago
I actually do this instead:
find . | grep "\.txt$"
1 comments
rejap
3763 days 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$"
link
Tiksi
3761 days ago
You can do a case insensitive search with -iname: find . -iname "*.txt"
link