Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

find|grep is perfectly alright. There's no shame in using it.


As long as you don't have files with newline character (which is totally valid, but fortunately not widely used).

However even without newline it will be fun to process all the special symbols in file names if you decide to handle somehow the matched files.

PS Unless I missed /s in your message, which I'm not always good at :)


I was being serious. Most often you get to choose, or at least to know, the names of your files. In those cases find|grep is very useful. You do not need your shell commands to always work in the fully general case.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: