HI!
Sorry for this really newbie question, but I was just wondering if grep works the same in UNIX and perl.
Right now I can do this in grep:
grep pattern filename
And i'll know if that pattern occurs in the file. But from my reading so far, as I can tell, this function in perl only works in the sense that grep(pattern,list) but I would rather search a file then a list.
I have alternative ways to perform the action of grep. But I'd like to use the power of grep to do my dirty work for me.
Thanks!
In reply to Questions about Grep by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |