UNSW   Faculty of Engineering PRINT VERSION SITE MAP  
cse | School of Computer Science and Engineering (CRICOS Provider No. 00098G)
    #About CSE     #Undergraduate Study     #Postgraduate Study     #Timetables & Courses     #Research & Publications     #People & Work Units     #Help & Resources     #News & Events     #High School Portal

Last updated 28.09.06

Searching the contents of a file

To search a text file for a string of characters or a regular expression use the command:

   grep pattern filename(s)

Using this command you can check to see if a text file holds specific information. grep is often used to search the output from a command.

Any regular expression containing one or more special characters must be quoted to remove their meaning.


[Home] [Search] [Index] This site maintained by webmaster@cse.unsw.edu.au
Top Of Page

 ###
Site maintained by webmistress@cse.unsw.edu.au
Please read the UNSW Copyright & Disclaimer Statement