I have this files: a.h, b.h, count.sh. And I use this operation
find . | grep ".h$"
And as result I have all 3 files but want only a.h, b.h? Where is my error?
I have this files: a.h, b.h, count.sh. And I use this operation
find . | grep ".h$"
And as result I have all 3 files but want only a.h, b.h? Where is my error?
You have to escape the .
since this way it match anything since that is its meaning in regex. So try "\.h$"
.