# SD212 HW 06

## [name] Type your name on the next line


## [Q1]

> Read [TLCL Chapter 6 "Redirection"](https://learning.oreilly.com/library/view/the-linux-command/9781492071235/xhtml/ch06.xhtml)
>
> Note that this reading should be largely *reviewing and reinforcing*
> what we already covered in class, rather than introducing new
> concepts. So you should read carefully and expect to understand it
> completely.
>
> Answer "yes" to indicate that you did the reading.


## [Q2]

> What is "standard error"?
>
> (a) An error message indicating a program does not work properly
> (b) A special location (default goes to the screen) where status
>     messages are printed
> (c) A file in the directory `/var/log` where a program's error
>     messages are stored
> (d) A terminal that is used for debugging when a program crashes


## [Q3]

> Assume `congress.txt` is a file that contains information on elected
>
> representatives like
>
>     firstname,lastname,state,party
>
> What would the following pipeline do?
>
>     cat congress.txt | cut -d',' -f3 | sort | uniq | wc -l
>
> (a) Get the number of different states in the file
> (b) Get the number of felines that have been elected to office
> (c) Print out all party affiliations in sorted order
> (d) Show how many members of each party are represented


