
Exam 2 Review
Exam 2
Final Exam Topics
- Given a regular
expression, understand what it will (and won't) match.
- Given a sed command,
understand what the output will be.
- Given an awk script, tell
what it does.
- Write a simple awk script
for a given problem
- Given a shell script, tell
what it does.
- Write a simple shell script
for a given problem
- Given a perl script, tell
what it does.
- Know some of the main
language features, especially lists, arrays, and associative arrays.
- Know the basics of
Functions, Misc. Control Structures, and Files.
- If you can do some things
more than one way in Perl, be able to give more than one example!
- Language differences (sed,
awk, shell, perl)
- Understand the differences
in the languages; a very good review can be found at the Perl traps
page, and anything here is fair game.
- Know how "if-then-else
if-else" is constructed in each language.
- Know what $0 means in each
language.
- Know what $1, $2, $3, etc.
means in each language.
- Typing differences: what
happens for example if you go
- set a to 2
- set b to “foo”
- set c to a plus b
- This class is by nature more
broad than deep…
- I am not interested in teaching the very fine details (minutia) or
rare boundary cases of syntax/semantics of a language, so focusing on
that will help you at most a point or two, probably zero. I just want you to be as
reasonably versed as the number of lectures and homework assignments can
reasonably make a sophomore be.