Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
hasenj
on March 5, 2016
|
parent
|
context
|
favorite
| on:
In defense of Unix
I actually do this instead:
find . | grep "\.txt$"
rejap
on March 5, 2016
[–]
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
on March 7, 2016
|
parent
[–]
You can do a case insensitive search with -iname: find . -iname "*.txt"
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: