how to grep out a particular line from a file

Posted by Omnipresent on Server Fault See other posts from Server Fault or by Omnipresent
Published on 2010-03-26T02:41:49Z Indexed on 2010/03/26 2:53 UTC
Read the original article Hit count: 342

Filed under:

How can I grep out a particular line from a file in a folder.

Basically I have a folder /my/cool/folder/myfile.txt

I know it has line: I am cool lkasjdfaksldfj

How can I grep on that file so the line starting with I am cool .... shows on the terminal?

© Server Fault or respective owner

Related posts about grep