|
School of Computer Science University of Windsor
03-60-214: Computer Languages, Grammars
and Translators (Winter 2012)
|
|
|
Apply for a unix account:Write to accounts@cs.uwindsor.ca Access a unix machine at home:There are several unix machines you can use, including alpha, bravo, charlie, sol, and luna. You need to use SSH client program to connet to one of the machines. One SSH client program can be downloaded from university ITS . One free ssh clinet is putty, which you can download from here.Practice regular expression using grepYou can use grep to search for certain pattern in text files, such as html files. For example, you can search for Canadian postal code or Ontario car plate numbers in a text file; Prepare text file, say grepTest, that consists of sample postal code etc. You can try the commands listed here.Type >grep ‘123’ grepTest grep ‘[a-z][0-9][a-z] [0-9][a-z][0-9]’ grepTest grep –i ‘[a-z][0-9][a-z] [0-9][a-z][0-9]’ grepTest Try regexTesterclick here to the regexTester applet; Write regular expressions and try the match(), find() methods.
|
Instructor: Dr. Jianguo Lu Email: jlu at uwindsor Office: 5111 Lambton Tower Phone: 519.253.3000 ext 3786
|