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

That will print the whole file regardless, I think you meant:

       perl -ne 'print if /regex/' file


Indeed :) Sorry for the mishap.




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

Search: